Wat doe ik fout?
Ik ben hier nu al twee dagen mee bezig maar komt er niet uit. Wanneer ik de volgende WSDL door de .NET wsdl.exe haal krijgt ik de volgende error:
Error
WSDL
Ik ben hier nu al twee dagen mee bezig maar komt er niet uit. Wanneer ik de volgende WSDL door de .NET wsdl.exe haal krijgt ik de volgende error:
Error
code:
1
2
3
| System.InvalidOperationException: Unable to import binding 'ASoap' from namespace 'http://tempuri.org/'. ---> System.InvalidOperationException: Unable to import operation 'getD'. ---> System.InvalidOperationException: The element 'http://tempuri.org/:getD' is missing. at System.Xml.Serialization.XmlSchemaImporter.FindElement(XmlQualifiedName name) at System.Xml.Serialization.XmlSchemaImporter.ImportElement(XmlQualifiedName name, Type desiredMappingType, Type baseType) |
WSDL
code:
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
| <?xml version="1.0" encoding="utf-8" ?>
<definitions
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:s="http://www.w3.org/2001/XMLShema/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema/"
xmlns:s0="http://tempuri.org/"
targetNamespace="http://tempuri.org/">
<types>
<s:schema elementFormDefault="qualified" targetNamespace="http://tempuri.org/" >
<s:element name="getD">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="DRequest" type="s0:DRequest"/>
</s:sequence>
</s:complexType>
</s:element>
<s:element name="getDResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="DResponse" type="s0:DResponse"/>
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="DResponse">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="test" type="s:string"/>
</s:sequence>
</s:complexType>
<s:complexType name="DRequest">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="test" type="s:string"/>
</s:sequence>
</s:complexType>
</s:schema>
</types>
<message name="getDSoapIn">
<part name="parameters" element="s0:getD"/>
</message>
<message name="getDSoapOut">
<part name="parameters" element="s0:getDResponse"/>
</message>
<portType name="ASoap">
<operation name="getD" >
<input message="s0:getDSoapIn"/>
<output message="s0:getDSoapOut"/>
</operation>
</portType>
<binding name="ASoap" type="s0:ASoap">
<wsdlsoap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
<operation name="getD">
<wsdlsoap:operation soapAction="http://tempuri.org/getD" style="document" />
<input>
<wsdlsoap:body use="literal" />
</input>
<output>
<wsdlsoap:body use="literal" />
</output>
</operation>
</binding>
<service name="Availabilty">
<port name="ASoap" binding="s0:ASoap">
<wsdlsoap:address location="http://xxx.xxx.xxx.xx/D.asmx"/>
</port>
</service>
</definitions> |