I am trying to import a set of webservices into my web page using the wsdl. (Visual Studio.net)
I have added the reference, but when I try to build, I get the error message below
the datatype User is defined in the wsdl as below
But the system says that the type User is not defined when I try to compile it.
Can anyone see what is wrong with this, or suggest a way of fixing it as I am struggling to get this working.
K
I have added the reference, but when I try to build, I get the error message below
Code:
"c:\inetpub\[URL unfurl="true"]wwwroot\TestInterfaces\Web[/URL] References\WebReference\Reference.map(1): Custom tool error: Unable to import WebService/Schema. Unable to import binding 'userFacadeSoapBinding' from namespace 'facade.soap.gateway.myco.org.uk'. Unable to import operation 'getUser'. The datatype 'User' is missing.
"
the datatype User is defined in the wsdl as below
Code:
<schema targetNamespace="[URL unfurl="true"]http://dto.soap.gateway.myco.org.uk"[/URL] xmlns="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema">[/URL]
<import namespace="[URL unfurl="true"]http://common.gateway.myco.org.uk"/>[/URL]
<import namespace="facade.soap.gateway.myco.org.uk"/>
<import namespace="[URL unfurl="true"]http://schemas.xmlsoap.org/soap/encoding/"/>[/URL]
<complexType name="User">
<sequence>
<element name="contractIds" nillable="true" type="impl:ArrayOf_xsd_String"/>
<element name="id" nillable="true" type="xsd:string"/>
</sequence>
</complexType>
But the system says that the type User is not defined when I try to compile it.
Can anyone see what is wrong with this, or suggest a way of fixing it as I am struggling to get this working.
K