Гость
Форумы / WCF, Web Services, Remoting [игнор отключен] [закрыт для гостей] / В чем косяк в этом WSDL? / 1 сообщений из 1, страница 1 из 1
06.12.2011, 11:23
    #37560586
tral11
Участник
Скрыть профиль Поместить в игнор-лист Сообщения автора в теме
В чем косяк в этом WSDL?
Добрый день, имею с wsdl общение всего второй день, мы описали сервис (три метода).
Выполняется почему-то всегда тот метод, который в секции binding идет первым,
можно проверить тут:
http://validwsdl.com/
введя WSDL URL : http://murmansk.masmer.ru/soap/?wsdl=1.0

например, жмем выполнить GetEventList, а выполняется всегда GetSupplierList.

Вот wsdl:

Код: plaintext
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
19.
20.
21.
22.
23.
24.
25.
26.
27.
28.
29.
30.
31.
32.
33.
34.
35.
36.
37.
38.
39.
40.
41.
42.
43.
44.
45.
46.
47.
48.
49.
50.
51.
52.
53.
54.
55.
56.
57.
58.
59.
60.
61.
62.
63.
64.
65.
66.
67.
68.
69.
70.
71.
72.
73.
74.
75.
76.
77.
78.
79.
80.
81.
82.
83.
84.
85.
86.
87.
88.
89.
90.
91.
92.
93.
94.
95.
96.
97.
98.
99.
100.
101.
102.
103.
104.
105.
106.
107.
108.
109.
110.
111.
112.
113.
114.
115.
116.
117.
118.
119.
120.
121.
122.
123.
124.
125.
126.
127.
128.
129.
130.
131.
132.
133.
134.
135.
136.
137.
138.
139.
140.
141.
142.
143.
144.
145.
146.
147.
148.
149.
150.
151.
152.
153.
154.
155.
156.
157.
158.
159.
<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
                  xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                  xmlns:xs="http://www.w3.org/2001/XMLSchema"
                  xmlns:mm="mm"
                  xmlns:mms="mms"
                  targetNamespace="mm">
	<wsdl:types>
		<xs:schema 
			xmlns:xs="http://www.w3.org/2001/XMLSchema"
			targetNamespace="mms"
			elementFormDefault="qualified"
            attributeFormDefault="unqualified"
			xmlns:mms="mms"
			xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
                
			<xs:element name="Bober" type="mms:BoberType"/>
			<xs:complexType name="BoberType">
				<xs:annotation>
                    <xs:documentation><![CDATA[Тест]]></xs:documentation>
                </xs:annotation>
				<xs:sequence>
					<xs:element name="Id" type="xs:integer"/>
					<xs:element name="ShortName" type="xs:string"/>
					<xs:element name="FullName" type="xs:string"/>
				</xs:sequence>
			</xs:complexType>
			<xs:element name="BoberList" type="mms:BoberListType"/>
			<xs:complexType name="BoberListType">
				<xs:annotation>
                    <xs:documentation><![CDATA[Список тест]]></xs:documentation>
                </xs:annotation>
				<xs:sequence>
					<xs:element name="Bober" type="mms:BoberType"/>
				</xs:sequence>
			</xs:complexType>
                
                
			<xs:element name="Supplier" type="mms:SupplierType"/>
			<xs:complexType name="SupplierType">
				<xs:annotation>
                    <xs:documentation><![CDATA[Поставщик услуги]]></xs:documentation>
                </xs:annotation>
				<xs:sequence>
					<xs:element name="Id" type="xs:integer"/>
					<xs:element name="ShortName" type="xs:string"/>
					<xs:element name="FullName" type="xs:string"/>
				</xs:sequence>
			</xs:complexType>
			<xs:element name="SupplierList" type="mms:SupplierListType"/>
			<xs:complexType name="SupplierListType">
				<xs:annotation>
                    <xs:documentation><![CDATA[Список поставщиков услуги]]></xs:documentation>
                </xs:annotation>
				<xs:sequence>
					<xs:element name="Supplier" type="mms:SupplierType"/>
				</xs:sequence>
			</xs:complexType>
            
            
                
			<xs:element name="Event" type="mms:EventType"/>
			<xs:complexType name="EventType">
				<xs:annotation>
                    <xs:documentation><![CDATA[Поставщик услуги]]></xs:documentation>
                </xs:annotation>
				<xs:sequence>
					<xs:element name="Id" type="xs:integer"/>
					<xs:element name="ShortName" type="xs:string"/>
					<xs:element name="FullName" type="xs:string"/>
				</xs:sequence>
			</xs:complexType>
			<xs:element name="EventList" type="mms:EventListType"/>
			<xs:complexType name="EventListType">
				<xs:annotation>
                    <xs:documentation><![CDATA[Список поставщиков услуги]]></xs:documentation>
                </xs:annotation>
				<xs:sequence>
					<xs:element name="Event" type="mms:EventType"/>
				</xs:sequence>
			</xs:complexType>
            
		</xs:schema>
	</wsdl:types>
	
	
    <wsdl:message name="GetBoberList"/>
    <wsdl:message name="GetBoberListResponse">
		<wsdl:part name="GetBoberListResponse" type="mm:BoberListType"/>
	</wsdl:message>
    <wsdl:message name="GetSupplierList"/>
	<wsdl:message name="GetSupplierListResponse">
		<wsdl:part name="GetSupplierListResponse" type="mm:SupplierListType"/>
	</wsdl:message>
    <wsdl:message name="GetEventList"/>
	<wsdl:message name="GetEventListResponse">
		<wsdl:part name="GetEventListResponse" type="mm:EventListType"/>
	</wsdl:message>
    
	
	<wsdl:portType name="MasmerPortType">
        <wsdl:operation name="GetBoberList">
            <wsdl:input message="mm:GetBoberList"/>
            <wsdl:output message="mm:GetBoberListResponse"/>
        </wsdl:operation>
        <wsdl:operation name="GetSupplierList">
            <wsdl:input message="mm:GetSupplierList"/>
            <wsdl:output message="mm:GetSupplierListResponse"/>
        </wsdl:operation>
        <wsdl:operation name="GetEventList">
            <wsdl:input message="mm:GetEventList"/>
            <wsdl:output message="mm:GetEventListResponse"/>
        </wsdl:operation>
	</wsdl:portType>
    
        <wsdl:binding name="MasmerService" type="mm:MasmerPortType">
		<soap:binding transport="http://schemas.xmlsoap.org/soap/http"/>
        
        
        <wsdl:operation name="GetSupplierList">
			<soap:operation soapAction="GetSupplierList" style="document"/>
			<wsdl:input>
				<soap:body use="literal"/>
			</wsdl:input>
			<wsdl:output>
				<soap:body use="literal"/>
			</wsdl:output>
		</wsdl:operation>
        
        <wsdl:operation name="GetEventList">
			<soap:operation soapAction="GetEventList" style="document"/>
			<wsdl:input>
				<soap:body use="literal"/>
			</wsdl:input>
			<wsdl:output>
				<soap:body use="literal"/>
			</wsdl:output>
		</wsdl:operation>
        
        
        <wsdl:operation name="GetBoberList">
			<soap:operation soapAction="GetBoberList" style="document"/>
			<wsdl:input>
				<soap:body use="literal"/>
			</wsdl:input>
			<wsdl:output>
				<soap:body use="literal"/>
			</wsdl:output>
		</wsdl:operation>

	</wsdl:binding>
	
	<wsdl:service name="MasmerService">
		<wsdl:port name="MasmerService" binding="mm:MasmerService">
			<soap:address location="http://murmansk.masmer.ru/soap/"/>
		</wsdl:port>
	</wsdl:service>
    
</wsdl:definitions>



если в блоке binding первой операцией сделать <wsdl:operation name="GetEventList">, то будет срабатывать она при вызове любой из трёх.

Хелп!
...
Рейтинг: 0 / 0
Форумы / WCF, Web Services, Remoting [игнор отключен] [закрыт для гостей] / В чем косяк в этом WSDL? / 1 сообщений из 1, страница 1 из 1
Целевая тема:
Создать новую тему:
Автор:
Найденые пользователи ...
Разблокировать пользователей ...
Читали форум (0):
Пользователи онлайн (0):
x
x
Закрыть


Просмотр
0 / 0
Close
Debug Console [Select Text]