Salut a tout le monde,
J'ai développé un WebServices en C# avec VS 2005.
Mon problème c'est que lorsque j'ouvre le WSDL générer para le VS 2005 avec Altova XmlSpy et j'essaye de le valider j'ai l'erreur suivant:
le fichier WSDL:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 This file is not valid: While validating against complex type wsdl:tBinding, element soap12:binding matched wildcard {any except from namespace http://schema.xmlsoap.org/wsdl/) but no element declaration was found.
L'erreur est dans la ligne qu'est en rouge.
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 <?xml version="1.0" encoding="utf-8" ?> <wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://mondomaine.org/crm/" xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" targetNamespace="http://mondomaine.org/crm/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"> <wsdl:types> <s:schema elementFormDefault="qualified" targetNamespace="http://mondomaine.org/crm/"> <s:element name="GetData_target"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" /> </s:sequence> </s:complexType> </s:element> <s:element name="GetData_targetResponse"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="GetData_targetResult"> <s:complexType> <s:sequence> <s:element ref="s:schema" /> <s:any /> </s:sequence> </s:complexType> </s:element> </s:sequence> </s:complexType> </s:element> <s:element name="GetData_broker"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="code" type="s:string" /> </s:sequence> </s:complexType> </s:element> <s:element name="GetData_brokerResponse"> <s:complexType> <s:sequence> <s:element minOccurs="0" maxOccurs="1" name="GetData_brokerResult"> <s:complexType> <s:sequence> <s:element ref="s:schema" /> <s:any /> </s:sequence> </s:complexType> </s:element> </s:sequence> </s:complexType> </s:element> </s:schema> </wsdl:types> <wsdl:message name="GetData_targetSoapIn"> <wsdl:part name="parameters" element="tns:GetData_target" /> </wsdl:message> <wsdl:message name="GetData_targetSoapOut"> <wsdl:part name="parameters" element="tns:GetData_targetResponse" /> </wsdl:message> <wsdl:message name="GetData_brokerSoapIn"> <wsdl:part name="parameters" element="tns:GetData_broker" /> </wsdl:message> <wsdl:message name="GetData_brokerSoapOut"> <wsdl:part name="parameters" element="tns:GetData_brokerResponse" /> </wsdl:message> <wsdl:portType name="ServiceSoap"> <wsdl:operation name="GetData_target"> <wsdl:input message="tns:GetData_targetSoapIn" /> <wsdl:output message="tns:GetData_targetSoapOut" /> </wsdl:operation> <wsdl:operation name="GetData_broker"> <wsdl:input message="tns:GetData_brokerSoapIn" /> <wsdl:output message="tns:GetData_brokerSoapOut" /> </wsdl:operation> </wsdl:portType> <wsdl:binding name="ServiceSoap" type="tns:ServiceSoap"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="GetData_target"> <soap:operation soapAction="http://mondomaine.org/crm/GetData_target" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="GetData_broker"> <soap:operation soapAction="http://mondomaine.org/crm/GetData_broker" style="document" /> <wsdl:input> <soap:body use="literal" /> </wsdl:input> <wsdl:output> <soap:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="ServiceSoap12" type="tns:ServiceSoap"> <soap12:binding ransport="http://schemas.xmlsoap.org/soap/http" /> <wsdl:operation name="GetData_target"> <soap12:operation soapAction="http://mondomaine.org/crm/GetData_target" style="document" /> <wsdl:input> <soap12:body use="literal" /> </wsdl:input> <wsdl:output> <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> <wsdl:operation name="GetData_broker"> <soap12:operation soapAction="http://mondomaine.org/crm/GetData_broker" style="document" /> <wsdl:input> <soap12:body use="literal" /> </wsdl:input> <wsdl:output> <soap12:body use="literal" /> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:service name="Service"> <wsdl:port name="ServiceSoap" binding="tns:ServiceSoap"> <soap:address location="http://mondomaine.org/crm/service.asmx" /> </wsdl:port> <wsdl:port name="ServiceSoap12" binding="tns:ServiceSoap12"> <soap12:address location="http://mondomaine.org/crm/service.asmx" /> </wsdl:port> </wsdl:service> </wsdl:definitions>
Merci pour votre aide.
Partager