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 / November 2004

Tip: Looking for answers? Try searching our database.

build proxy with wsdl.exe (Error: Unable to import binding)

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Carmit - 09 Nov 2004 12:25 GMT
Hi,

I'm trying to build a proxy for this webservice:

http://webservices.sabre.com/wsdl/sabreXML1.0.00/tpf/EndTransactionLLSRQ.wsdl

I'm getting the following error:

Error: Unable to import binding 'EndTransactionSoapBinding' from namespace 'http
s://webservices.sabre.com/websvc'.
 - Unable to import operation 'EndTransactionRQ'.
 - The element 'http://www.ebxml.org/namespaces/messageHeader:MessageHeader' is
missing.

Any ideas how to solve this one?

Thanks,
C
yuri - 10 Nov 2004 04:53 GMT
The problem is related to importing the schema files.

Replacing the following lines

<import namespace="http://webservices.sabre.com/sabreXML/2003/07"
location="EndTransactionLLSRQRS.xsd"/>
<import namespace="http://www.ebxml.org/namespaces/messageHeader"
location="msg-header-2_0.xsd"/>
<import namespace="http://www.w3.org/2000/09/xmldsig#"
location="xmldsig-core-schema.xsd"/>
<import namespace="http://www.w3.org/1999/xlink" location="xlink.xsd"/>
<import namespace="http://schemas.xmlsoap.org/soap/envelope/"
location="envelope.xsd"/>
<import namespace="http://www.w3.org/XML/1998/namespace"
location="xml.xsd"/>
<import namespace="http://schemas.xmlsoap.org/ws/2002/12/secext"
location="wsse.xsd"/>

with

<types>
    <xs:schema
targetNamespace="http://webservices.sabre.com/sabreXML/2003/07">
        <xs:include schemaLocation="EndTransactionLLSRQRS.xsd"/>
    </xs:schema>
    <xs:schema
targetNamespace="http://www.ebxml.org/namespaces/messageHeader">
        <xs:include schemaLocation="msg-header-2_0.xsd"/>
    </xs:schema>
    <xs:schema targetNamespace="http://www.w3.org/2000/09/xmldsig#">
        <xs:include schemaLocation="xmldsig-core-schema.xsd"/>
    </xs:schema>
    <xs:schema targetNamespace="http://www.w3.org/1999/xlink">
        <xs:include schemaLocation="xlink.xsd"/>
    </xs:schema>
    <xs:schema targetNamespace="http://schemas.xmlsoap.org/soap/envelope/">
        <xs:include schemaLocation="envelope.xsd"/>
    </xs:schema>
    <xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace">
        <xs:include schemaLocation="xml.xsd"/>
    </xs:schema>
    <xs:schema
targetNamespace="http://schemas.xmlsoap.org/ws/2002/12/secext">
        <xs:include schemaLocation="wsse.xsd"/>
    </xs:schema>
</types>

and downloading all required schema files from
http://webservices.sabre.com/wsdl/sabreXML1.0.00/tpf/ to the same directory
where EndTransactionLLSRQ.wsdl  is located will enable stub generation. The
required files are:

EndTransactionLLSRQ.xsd
EndTransactionLLSRQRS.xsd
EndTransactionLLSRS.xsd
env.xsd
envelope.xsd
msg-header-2_0.xsd
wsse.xsd
xlink.xsd
xml.xsd
xmldsig-core-schema.xsd

There will be some validation warnings about duplicate global attributes; it
will probably be worthwile to fix them.

Thanks,
Yuri

> Hi,
>
[quoted text clipped - 16 lines]
> Thanks,
> C
Carmit - 10 Nov 2004 14:28 GMT
Thank you so much, I've replaced the imports with includes and it did the job!

-- Carmit

> The problem is related to importing the schema files.
>
[quoted text clipped - 85 lines]
> > Thanks,
> > C

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.