Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WSDL - Cannot Find the Interface

Status
Not open for further replies.

Kalisto

Programmer
Feb 18, 2003
997
GB
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

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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top