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 / October 2006

Tip: Looking for answers? Try searching our database.

wsdl.exe error

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Nick Locke - 20 Oct 2006 17:10 GMT
I have managed to get rid of my earlier problems with import vs include. One
error remaining. SQLSpy is happy, wsdl.exe isn't! I have pasted the error
here and the WSDL further down. It's probably very obvious to a non-newbie,
but not to me!

Can someone help please? Thanks

--------------------------------------------------------------------------------

C:\WSDL>wsdl /server /out:temp stolen.wsdl

Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 2.0.50727.42]

Copyright (C) Microsoft Corporation. All rights reserved.

Error: Unable to import binding 'bindingName' from namespace
'http://new.webservice.namespace'.
- Unable to import operation 'AddStolenVehicle'.
- The operation binding 'AddStolenVehicle' from namespace
'http://new.webservice.namespace' had invalid syntax. Missing soap:operation
binding.

C:\WSDL>

--------------------------------------------------------------------------------

<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
xmlns:t="http://services.xxxx-yyyyy.co.uk/types"
xmlns:y="http://new.webservice.namespace"
targetNamespace="http://new.webservice.namespace">

<types>
<xs:schema targetNamespace="http://services.xxxx-yyyyy.co.uk/types">
<xs:include schemaLocation="Types.xsd"/>
</xs:schema>
</types>

<message name="AddRequest">
<part name="VehicleDetails" element="t:Vehicle"/>
</message>

<message name="AddResponse">
<part name="VehicleFraudId" element="t:VehicleUpdate" />
</message>

<portType name="SOAPport">
<operation name="AddStolenVehicle">
<input message="y:AddRequest"/>
<output message="y:AddResponse"/>
</operation>
</portType>

<binding name="bindingName" type="y:SOAPport">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="AddStolenVehicle">
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>

<service name="StolenVehicles">
<port name="StolenPort" binding="y:bindingName">
<soap:address location="https://www.services.xxxx-yyyyy.org.uk"/>
</port>
</service>

</definitions>
Nick Locke - 20 Oct 2006 17:30 GMT
Seems that I needed to add:

<soap:operation soapAction=""/>

Why does XMLSpy say it's valid without that>
John Saunders - 21 Oct 2006 18:42 GMT
> Seems that I needed to add:
>
> <soap:operation soapAction=""/>
>
> Why does XMLSpy say it's valid without that>

The two programs are doing different jobs. XMLSpy is validating against a
schema; WSDL.EXE is trying to generate code.

Neither of them, BTW, is checking for compliance with WS-I Basic Profile,
for instance. Use a tool like SOAPScope from MindReef for that. It will show
you issues that neither XMLSpy nor WSDL.EXE will complain about.

John

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.