Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2005

Tip: Looking for answers? Try searching our database.

tool WSDL error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Matt R - 30 Mar 2005 15:50 GMT
I have a WSDL on the network that defines a service that I wish to consume.

Having added a reference to the wsdl to my project , and tried to build the
project I get the following error.

"c:\inetpub\wwwroot\TestInterfaces\Web
References\UserServices\Reference.map(1): Custom tool error: Unable to
import WebService/Schema. Unable to import binding 'userFacadeSoapBinding'
from namespace 'facade.soap.gateway.b.org.uk'. Unable to import operation
'getUser'. Schema with targetNamespace='http://dto.soap.gateway.b.org.uk'
has invalid syntax. The 'ref' attribute cannot be present."

1) Renaming all instances of dto in my project with another string still
causes the above error. (I checked that there were no dto's in the included
files as well

2) I have duplicated the definitions schema and replaced all elements with
complex types so I can remove the refs, and still get the same error.

3) I have removed all references to getUser from the wsdl, but still the
same error persists.

So, what else can I try?

I initially thought it was a namespace problem, but after doing all the
above, (and rebuilding each time) I am now not so sure.

Any help at all greatfully received
Lionel LASKE - 30 Mar 2005 17:36 GMT
Are you sure your WSDL is correct ? Your error message is strange: "ref" is
for "reference" on an object and it's forbidden in WSDL.
Could you post the full WSDL ?

                        Lionel.

>I have a WSDL on the network that defines a service that I wish to consume.
>
[quoted text clipped - 26 lines]
>
> Any help at all greatfully received
Matt R - 31 Mar 2005 10:21 GMT
Theplot thickens. I just removed the WebReferences and recreated them, and
now get this message

"c:\inetpub\wwwroot\TestInterfaces\Web
References\UserServices\Reference.map(1): Custom tool error: Unable to
import WebService/Schema. Unable to import binding 'userFacadeSoapBinding'
from namespace 'facade.soap.gateway.b.org.uk'. Unable to import operation
'createUser'. The datatype 'User' is missing."

User is defined in the WSDL, not the schema with all the other definitions.
The more I look at this the more I think its a namespace issue. The WSDL is
produced from a java tool, and I am assured that it is ok.

The wsdl is long, but the section at the top is posted below..

<?xml version="1.0" encoding="UTF-8"?>

<wsdl:definitions targetNamespace="facade.soap.gateway.b.org.uk"

xmlns:apachesoap="http://xml.apache.org/xml-soap"

xmlns:impl="facade.soap.gateway.b.org.uk"

xmlns:intf="facade.soap.gateway.b.org.uk"

xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"

xmlns:tns1="http://dto.soap.gateway.b.org.uk"

xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"

xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"

xmlns:b="http://bdefinitions.soap.gateway.b.org.uk"

xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<wsdl:import namespace="http://bdefinitions.soap.gateway.b.org.uk"
location="file:./bdefinitions.xsd"/>

<wsdl:types>

<schema targetNamespace="http://common.gateway.b.org.uk"
xmlns="http://www.w3.org/2001/XMLSchema">

<import namespace="http://dto.soap.gateway.b.org.uk"/>

<import namespace="facade.soap.gateway.b.org.uk"/>

<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

</schema>

<schema targetNamespace="facade.soap.gateway.b.org.uk"
xmlns="http://www.w3.org/2001/XMLSchema">

<import namespace="http://common.gateway.b.org.uk"/>

<import namespace="http://dto.soap.gateway.b.org.uk"/>

<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

<complexType name="ArrayOf_xsd_String">

<complexContent>

<restriction base="soapenc:Array">

<attribute type="soapenc:arrayType" wsdl:arrayType="string[]"/>

</restriction>

</complexContent>

</complexType>

</schema>

<schema targetNamespace="http://matx.soap.gateway.b.org.uk"
xmlns="http://www.w3.org/2001/XMLSchema">

<import namespace="http://common.gateway.b.org.uk"/>

<import namespace="facade.soap.gateway.b.org.uk"/>

<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>

<complexType name="User">

<sequence>

<element name="contractIds" nillable="true" type="impl:ArrayOf_xsd_String"/>

<element name="id" nillable="true" type="xsd:string"/>

<element name="userDetails" nillable="true" type="b:userdetails"/>

<element name="organisationDetails" nillable="true"
type="b:organisationdetails"/>

<element name="accessDetails" nillable="true" type="b:accessdetails"/>

</sequence>

</complexType>

</schema>

</wsdl:types>

the bdefinitions and the wsdl are on a network drive if that has any
bearing.

Matt

> Are you sure your WSDL is correct ? Your error message is strange: "ref" is
> for "reference" on an object and it's forbidden in WSDL.
> Could you post the full WSDL ?
>
>                          Lionel.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.