[.NET] WSDL fout

Pagina: 1
Acties:
  • 196 views sinds 30-01-2008
  • Reageer

  • vinnux
  • Registratie: Maart 2001
  • Niet online
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
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>

  • paulh
  • Registratie: Juli 1999
  • Laatst online: 22-06 15:30
werkt de webservice al op http://tempuri.org/ ?

[ZwareMetalen.com] - [Kom in aktie tegen de CO2 maffia]


  • vinnux
  • Registratie: Maart 2001
  • Niet online
De namespace is niet relevant in dit opzicht.

[ Voor 3% gewijzigd door vinnux op 13-08-2003 21:10 ]


  • sander_g
  • Registratie: Juli 2002
  • Laatst online: 12:51
ik zie wel een tikfout:
xmlns:s="http://www.w3.org/2001/XMLShema/"

moet zijn
xmlns:s="http://www.w3.org/2001/XMLSchema/"

maar daar ligt het niet aan.

Garmin Fēnix 7 Pro | https://www.strava.com/athletes/30783039


Verwijderd

En wat is het verschil?

  • dellai
  • Registratie: Augustus 2000
  • Laatst online: 10-06 14:16
xmlns:s="http://www.w3.org/2001/XMLSchema/"

Egg ?


Verwijderd

oeps niet gezien

[ Voor 84% gewijzigd door Verwijderd op 14-08-2003 15:15 ]

Pagina: 1