HighTechTalks DotNet Forums  

Fighting WSDL.exe

ASP.net Web Services microsoft.public.dotnet.framework.aspnet.webservices


Discuss Fighting WSDL.exe in the ASP.net Web Services forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Nick Locke
 
Posts: n/a

Default Fighting WSDL.exe - 10-16-2006 , 02:11 PM






Hello, a very newbie here, so please don't be too harsh! I have found my way
through to using Altova XMLSpy to create what it says is a valid WSDL file
(including picking up the Types from an external file as I shall need to
reuse them). XMLSpy is happy, but when I try to push the WSDL through the MS
WSDL.EXE tool, it has kittens. I have added the Lecture from WSDL.EXE first
and then my WSDL. I would welcome any help - and apologies for the length of
the post!


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

C:\>wsdl /server /out:c:\temp c:\temp.wsdl

Microsoft (R) Web Services Description Language Utility

[Microsoft (R) .NET Framework, Version 2.0.50727.42]

Copyright (C) Microsoft Corporation. All rights reserved.

Warning: This web reference does not conform to WS-I Basic Profile v1.1.

R2204: A document-literal binding in a DESCRIPTION MUST refer, in each of
its soapbind:body element(s), only to wsdlart element(s) that have been
defined using the element attribute.

- Part 'VehicleDetails' of message 'AddRequest' from service description
with targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Part 'StolenVehicleId' of message 'AddResponse' from service description
with targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Part 'ServerTime' of message 'AddResponse' from service description with
targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

R2210: If a document-literal binding in a DESCRIPTION does not specify the
parts attribute on a soapbind:body element, the corresponding abstract
wsdl:message MUST define zero or one wsdlarts.

- Operation 'StolenVehicleAdd' on binding 'StolenBinding' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

For more details on the WS-I Basic Profile v1.1, see the specificationat
http://www.ws-i.org/Profiles/BasicProfile-1.1.html.

Error: Unable to import binding 'StolenBinding' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Unable to import operation 'StolenVehicleAdd'.

- The operation binding 'StolenVehicleAdd' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle' had invalid syntax.
Missing soapperation binding.


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

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2006 rel. 3 sp2 (http://www.altova.com) by Nick
Locke (N/A) -->
<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:y="http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle"
xmlns:t="http://interfaces.xxxx-yyyyy.org.uk/types"
xmlns:st="http://interfaces.xxxx-yyyyy.org.uk/simple_types"
targetNamespace="http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle">
<types>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:t="http://interfaces.xxxx-yyyyy.org.uk/types" targetNamespace="empty"
elementFormDefault="qualified">
<xsd:import namespace="http://interfaces.xxxx-yyyyy.org.uk/types"
schemaLocation="C:\Documents and Settings\NickLocke\My Documents\Altova
Projects\Types.xsd"/>
</xsd:schema>
</types>
<message name="AddRequest">
<part name="VehicleDetails" type="t:Vehicle"/>
</message>
<message name="AddResponse">
<part name="StolenVehicleId" type="st:VehicleId_Type"/>
<part name="ServerTime" type="st:Timestamp_Type"/>
</message>
<portType name="SOAPport">
<operation name="StolenVehicleAdd">
<input message="y:AddRequest"/>
<output message="y:AddResponse"/>
</operation>
</portType>
<binding name="StolenBinding" type="y:SOAPport">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<operation name="StolenVehicleAdd">
<input>
<soap:body use="literal"/>
</input>
<output>
<soap:body use="literal"/>
</output>
</operation>
</binding>
<service name="StolenVehicle">
<port name="StolenVehiclePort" binding="y:StolenBinding">
<soap:address location="http://interfaces.xxxx-yyyyy.org.uk"/>
</port>
</service>
</definitions>



Reply With Quote
  #2  
Old   
David Jessee
 
Posts: n/a

Default RE: Fighting WSDL.exe - 10-18-2006 , 08:55 AM






You're going to have to forgive me on being a little vauge, but I've not
dealt with this in a while (totally jaded about web services, here :-)

but...

The problem is with your import statement. The wsdl.exe is going to try to
resolve the import by processing it as a URI. try expressing it as
"file://c:/......"

Be aware, though, that you may end up with issues down the road, depending
on how you move forward.

The MS implementation of Web Services makes the assumption, at runtime, that
no one ever created a WSDL file and, therefore, it doesn't perform any
validation against the original WSDL file OR the original schema.

just take a good close look at the generated code when you're done (esp the
attributes attached to the abstract server) to make sure nothing strange
happened.

Side note...When you're doing web services via studio, you're,
unfortunately, wasting your time creating this contract first and then
creating code based on the contract since, as mentioned earlier, the contract
is never enforced, by default. After creating a number of web services using
the WSDL-first approach, I realized that you're doing work that, once the
implementation is completed, really won't have much of a payoff.


"Nick Locke" wrote:

Quote:
Hello, a very newbie here, so please don't be too harsh! I have found my way
through to using Altova XMLSpy to create what it says is a valid WSDL file
(including picking up the Types from an external file as I shall need to
reuse them). XMLSpy is happy, but when I try to push the WSDL through the MS
WSDL.EXE tool, it has kittens. I have added the Lecture from WSDL.EXE first
and then my WSDL. I would welcome any help - and apologies for the length of
the post!


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

C:\>wsdl /server /out:c:\temp c:\temp.wsdl

Microsoft (R) Web Services Description Language Utility

[Microsoft (R) .NET Framework, Version 2.0.50727.42]

Copyright (C) Microsoft Corporation. All rights reserved.

Warning: This web reference does not conform to WS-I Basic Profile v1.1.

R2204: A document-literal binding in a DESCRIPTION MUST refer, in each of
its soapbind:body element(s), only to wsdlart element(s) that have been
defined using the element attribute.

- Part 'VehicleDetails' of message 'AddRequest' from service description
with targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Part 'StolenVehicleId' of message 'AddResponse' from service description
with targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Part 'ServerTime' of message 'AddResponse' from service description with
targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

R2210: If a document-literal binding in a DESCRIPTION does not specify the
parts attribute on a soapbind:body element, the corresponding abstract
wsdl:message MUST define zero or one wsdlarts.

- Operation 'StolenVehicleAdd' on binding 'StolenBinding' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

For more details on the WS-I Basic Profile v1.1, see the specificationat
http://www.ws-i.org/Profiles/BasicProfile-1.1.html.

Error: Unable to import binding 'StolenBinding' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Unable to import operation 'StolenVehicleAdd'.

- The operation binding 'StolenVehicleAdd' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle' had invalid syntax.
Missing soapperation binding.


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

?xml version="1.0" encoding="UTF-8"?
!-- edited with XMLSpy v2006 rel. 3 sp2 (http://www.altova.com) by Nick
Locke (N/A) --
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:y="http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle"
xmlns:t="http://interfaces.xxxx-yyyyy.org.uk/types"
xmlns:st="http://interfaces.xxxx-yyyyy.org.uk/simple_types"
targetNamespace="http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle"
types
xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:t="http://interfaces.xxxx-yyyyy.org.uk/types" targetNamespace="empty"
elementFormDefault="qualified"
xsd:import namespace="http://interfaces.xxxx-yyyyy.org.uk/types"
schemaLocation="C:\Documents and Settings\NickLocke\My Documents\Altova
Projects\Types.xsd"/
/xsd:schema
/types
message name="AddRequest"
part name="VehicleDetails" type="t:Vehicle"/
/message
message name="AddResponse"
part name="StolenVehicleId" type="st:VehicleId_Type"/
part name="ServerTime" type="st:Timestamp_Type"/
/message
portType name="SOAPport"
operation name="StolenVehicleAdd"
input message="y:AddRequest"/
output message="y:AddResponse"/
/operation
/portType
binding name="StolenBinding" type="y:SOAPport"
soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/
operation name="StolenVehicleAdd"
input
soap:body use="literal"/
/input
output
soap:body use="literal"/
/output
/operation
/binding
service name="StolenVehicle"
port name="StolenVehiclePort" binding="y:StolenBinding"
soap:address location="http://interfaces.xxxx-yyyyy.org.uk"/
/port
/service
/definitions




Reply With Quote
  #3  
Old   
John Saunders
 
Posts: n/a

Default Re: Fighting WSDL.exe - 10-18-2006 , 10:15 AM



"David Jessee" <DavidJessee (AT) discussions (DOT) microsoft.com> wrote

Quote:
You're going to have to forgive me on being a little vauge, but I've not
dealt with this in a while (totally jaded about web services, here :-)

but...

The problem is with your import statement. The wsdl.exe is going to try
to
resolve the import by processing it as a URI. try expressing it as
"file://c:/......"

Be aware, though, that you may end up with issues down the road, depending
on how you move forward.

The MS implementation of Web Services makes the assumption, at runtime,
that
no one ever created a WSDL file and, therefore, it doesn't perform any
validation against the original WSDL file OR the original schema.

just take a good close look at the generated code when you're done (esp
the
attributes attached to the abstract server) to make sure nothing strange
happened.

Side note...When you're doing web services via studio, you're,
unfortunately, wasting your time creating this contract first and then
creating code based on the contract since, as mentioned earlier, the
contract
is never enforced, by default. After creating a number of web services
using
the WSDL-first approach, I realized that you're doing work that, once the
implementation is completed, really won't have much of a payoff.
I have to disagree with this. It's true that if you want schema validation
you have to do it yourself. There's an article about this on MSDN. Sorry I
don't have the URL handy. I've followed that article and have implemented
schema validation on input and on output, and it works nicely.

I also use the classes generated by WSDL.EXE. I used to inherit from the
service class it generates, but I now manipulate the XML directly, so only
use the other classes it generates.

John




Reply With Quote
  #4  
Old   
Nick Locke
 
Posts: n/a

Default Re: Fighting WSDL.exe - 10-18-2006 , 04:17 PM




"David Jessee" <DavidJessee (AT) discussions (DOT) microsoft.com> wrote


Quote:
The problem is with your import statement. The wsdl.exe is going to try
to
resolve the import by processing it as a URI. try expressing it as
"file://c:/......"
Thanks David,

I have tried that and, unfortunately, I am still getting exactly the same
set of errors.

Any more clues?




Reply With Quote
  #5  
Old   
Meena Lalwani
 
Posts: n/a

Default RE: Fighting WSDL.exe - 01-02-2008 , 12:48 AM




Quote:
Hello, a very newbie here, so please don't be too harsh! I have found my way
through to using Altova XMLSpy to create what it says is a valid WSDL file
(including picking up the Types from an external file as I shall need to
reuse them). XMLSpy is happy, but when I try to push the WSDL through the MS
WSDL.EXE tool, it has kittens. I have added the Lecture from WSDL.EXE first
and then my WSDL. I would welcome any help - and apologies for the length of
the post!


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

C:\>wsdl /server /out:c:\temp c:\temp.wsdl

Microsoft (R) Web Services Description Language Utility

[Microsoft (R) .NET Framework, Version 2.0.50727.42]

Copyright (C) Microsoft Corporation. All rights reserved.

Warning: This web reference does not conform to WS-I Basic Profile v1.1.

R2204: A document-literal binding in a DESCRIPTION MUST refer, in each of
its soapbind:body element(s), only to wsdlart element(s) that have been
defined using the element attribute.

- Part 'VehicleDetails' of message 'AddRequest' from service description
with targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Part 'StolenVehicleId' of message 'AddResponse' from service description
with targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Part 'ServerTime' of message 'AddResponse' from service description with
targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

R2210: If a document-literal binding in a DESCRIPTION does not specify the
parts attribute on a soapbind:body element, the corresponding abstract
wsdl:message MUST define zero or one wsdlarts.

- Operation 'StolenVehicleAdd' on binding 'StolenBinding' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

For more details on the WS-I Basic Profile v1.1, see the specificationat
http://www.ws-i.org/Profiles/BasicProfile-1.1.html.

Error: Unable to import binding 'StolenBinding' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Unable to import operation 'StolenVehicleAdd'.

- The operation binding 'StolenVehicleAdd' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle' had invalid syntax.
Missing soapperation binding.


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

?xml version="1.0" encoding="UTF-8"?
!-- edited with XMLSpy v2006 rel. 3 sp2 (http://www.altova.com) by Nick
Locke (N/A) --
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:y="http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle"
xmlns:t="http://interfaces.xxxx-yyyyy.org.uk/types"
xmlns:st="http://interfaces.xxxx-yyyyy.org.uk/simple_types"
targetNamespace="http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle"
types
xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:t="http://interfaces.xxxx-yyyyy.org.uk/types" targetNamespace="empty"
elementFormDefault="qualified"
xsd:import namespace="http://interfaces.xxxx-yyyyy.org.uk/types"
schemaLocation="C:\Documents and Settings\NickLocke\My Documents\Altova
Projects\Types.xsd"/
/xsd:schema
/types
message name="AddRequest"
part name="VehicleDetails" type="t:Vehicle"/
/message
message name="AddResponse"
part name="StolenVehicleId" type="st:VehicleId_Type"/
part name="ServerTime" type="st:Timestamp_Type"/
/message
portType name="SOAPport"
operation name="StolenVehicleAdd"
input message="y:AddRequest"/
output message="y:AddResponse"/
/operation
/portType
binding name="StolenBinding" type="y:SOAPport"
soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/
operation name="StolenVehicleAdd"
input
soap:body use="literal"/
/input
output
soap:body use="literal"/
/output
/operation
/binding
service name="StolenVehicle"
port name="StolenVehiclePort" binding="y:StolenBinding"
soap:address location="http://interfaces.xxxx-yyyyy.org.uk"/
/port
/service
/definitions

Hi ,
I am facing the similar . WSDL is saying correct by XML Spy . WSDL is using nested schemas .There are many nested schema .Changing all schemas to one schema is not possible . Is there any other tool also which can generate the C# code .

I am getting following error
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 3.5.20706.1]
Copyright (C) Microsoft Corporation. All rights reserved.
Warning: This web reference does not conform to WS-I Basic Profile v1.1.
R2204: A document-literal binding in a DESCRIPTION MUST refer, in each of its so
apbind:body element(s), only to wsdlart element(s) that have been defined usin
g the element attribute.
- Part 'parametersrequest' of message 'CreateParentSubscriptionWsdlInputMessa
ge' from service description with targetNamespace='xml.ABCCorp.com/ISC/SO/SOCo
mmonHeader'.
- Part 'parametersresponse' of message 'CreateParentSubscriptionWsdlOutputMes
sage' from service description with targetNamespace='xml.ABCCorp.com/ISC/SO/SO
CommonHeader'.

For more details on the WS-I Basic Profile v1.1, see the specification
at http://www.ws-i.org/Profiles/BasicProfile-1.1.html.

Error: Unable to import binding 'CreateParentSubscriptionWsdlBinding' from names
pace 'xml.ABCCorp.com/ISC/SO/SOCommonHeader'.
- Unable to import operation 'createParentSubscription'.
- The element 'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecuri
ty-.0.xsd:Security' is missing.
If you would like more help, please type "wsdl /?".



BizTalk Utilities - Frustration free BizTalk Adapters
http://www.topxml.com/biztalkutilities


Reply With Quote
  #6  
Old   
John Saunders [MVP]
 
Posts: n/a

Default Re: Fighting WSDL.exe - 01-02-2008 , 08:26 AM



"Meena Lalwani" <meenalalwani3 (AT) hotmail (DOT) com> wrote

Quote:
Hello, a very newbie here, so please don't be too harsh! I have found my
way
through to using Altova XMLSpy to create what it says is a valid WSDL
file
(including picking up the Types from an external file as I shall need to
reuse them). XMLSpy is happy, but when I try to push the WSDL through the
MS
WSDL.EXE tool, it has kittens. I have added the Lecture from WSDL.EXE
first
and then my WSDL. I would welcome any help - and apologies for the length
of
the post!


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

C:\>wsdl /server /out:c:\temp c:\temp.wsdl

Microsoft (R) Web Services Description Language Utility

[Microsoft (R) .NET Framework, Version 2.0.50727.42]

Copyright (C) Microsoft Corporation. All rights reserved.

Warning: This web reference does not conform to WS-I Basic Profile v1.1.

R2204: A document-literal binding in a DESCRIPTION MUST refer, in each of
its soapbind:body element(s), only to wsdlart element(s) that have been
defined using the element attribute.

- Part 'VehicleDetails' of message 'AddRequest' from service description
with targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Part 'StolenVehicleId' of message 'AddResponse' from service
description
with targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Part 'ServerTime' of message 'AddResponse' from service description
with
targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

R2210: If a document-literal binding in a DESCRIPTION does not specify
the
parts attribute on a soapbind:body element, the corresponding abstract
wsdl:message MUST define zero or one wsdlarts.

- Operation 'StolenVehicleAdd' on binding 'StolenBinding' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

For more details on the WS-I Basic Profile v1.1, see the specificationat
http://www.ws-i.org/Profiles/BasicProfile-1.1.html.

Error: Unable to import binding 'StolenBinding' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Unable to import operation 'StolenVehicleAdd'.

- The operation binding 'StolenVehicleAdd' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle' had invalid syntax.
Missing soapperation binding.


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

?xml version="1.0" encoding="UTF-8"?
!-- edited with XMLSpy v2006 rel. 3 sp2 (http://www.altova.com) by Nick
Locke (N/A) --
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:y="http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle"
xmlns:t="http://interfaces.xxxx-yyyyy.org.uk/types"
xmlns:st="http://interfaces.xxxx-yyyyy.org.uk/simple_types"
targetNamespace="http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle"
types
xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:t="http://interfaces.xxxx-yyyyy.org.uk/types"
targetNamespace="empty"
elementFormDefault="qualified"
xsd:import namespace="http://interfaces.xxxx-yyyyy.org.uk/types"
schemaLocation="C:\Documents and Settings\NickLocke\My Documents\Altova
Projects\Types.xsd"/
/xsd:schema
/types
message name="AddRequest"
part name="VehicleDetails" type="t:Vehicle"/
/message
message name="AddResponse"
part name="StolenVehicleId" type="st:VehicleId_Type"/
part name="ServerTime" type="st:Timestamp_Type"/
/message
portType name="SOAPport"
operation name="StolenVehicleAdd"
input message="y:AddRequest"/
output message="y:AddResponse"/
/operation
/portType
binding name="StolenBinding" type="y:SOAPport"
soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/
operation name="StolenVehicleAdd"
input
soap:body use="literal"/
/input
output
soap:body use="literal"/
/output
/operation
/binding
service name="StolenVehicle"
port name="StolenVehiclePort" binding="y:StolenBinding"
soap:address location="http://interfaces.xxxx-yyyyy.org.uk"/
/port
/service
/definitions


Hi ,
I am facing the similar . WSDL is saying correct by XML Spy . WSDL is
using nested schemas .There are many nested schema .Changing all schemas
to one schema is not possible . Is there any other tool also which can
generate the C# code .

I am getting following error
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 3.5.20706.1]
Copyright (C) Microsoft Corporation. All rights reserved.
Warning: This web reference does not conform to WS-I Basic Profile v1.1.
R2204: A document-literal binding in a DESCRIPTION MUST refer, in each of
its so
apbind:body element(s), only to wsdlart element(s) that have been
defined usin
g the element attribute.
- Part 'parametersrequest' of message
'CreateParentSubscriptionWsdlInputMessa
ge' from service description with
targetNamespace='xml.ABCCorp.com/ISC/SO/SOCo
mmonHeader'.
- Part 'parametersresponse' of message
'CreateParentSubscriptionWsdlOutputMes
sage' from service description with
targetNamespace='xml.ABCCorp.com/ISC/SO/SO
CommonHeader'.

For more details on the WS-I Basic Profile v1.1, see the specification
at http://www.ws-i.org/Profiles/BasicProfile-1.1.html.

Error: Unable to import binding 'CreateParentSubscriptionWsdlBinding' from
names
pace 'xml.ABCCorp.com/ISC/SO/SOCommonHeader'.
- Unable to import operation 'createParentSubscription'.
- The element
'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecuri
ty-.0.xsd:Security' is missing.
If you would like more help, please type "wsdl /?".
If you use imported schemas, you must specify the path to the schemas on the
command line.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer




Reply With Quote
  #7  
Old   
Mighty G
 
Posts: n/a

Default Re: Fighting WSDL.exe - 03-06-2008 , 11:15 AM



in other words...

specify all files in the command line, e.g. .wsdl, .xsd, etc.

thanks John!

"John Saunders [MVP]" wrote:

Quote:
"Meena Lalwani" <meenalalwani3 (AT) hotmail (DOT) com> wrote in message
news:85ee6cc5-419b-4466-9d08-dad124471b9b (AT) text (DOT) giganews.com...

Hello, a very newbie here, so please don't be too harsh! I have found my
way
through to using Altova XMLSpy to create what it says is a valid WSDL
file
(including picking up the Types from an external file as I shall need to
reuse them). XMLSpy is happy, but when I try to push the WSDL through the
MS
WSDL.EXE tool, it has kittens. I have added the Lecture from WSDL.EXE
first
and then my WSDL. I would welcome any help - and apologies for the length
of
the post!


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

C:\>wsdl /server /out:c:\temp c:\temp.wsdl

Microsoft (R) Web Services Description Language Utility

[Microsoft (R) .NET Framework, Version 2.0.50727.42]

Copyright (C) Microsoft Corporation. All rights reserved.

Warning: This web reference does not conform to WS-I Basic Profile v1.1.

R2204: A document-literal binding in a DESCRIPTION MUST refer, in each of
its soapbind:body element(s), only to wsdlart element(s) that have been
defined using the element attribute.

- Part 'VehicleDetails' of message 'AddRequest' from service description
with targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Part 'StolenVehicleId' of message 'AddResponse' from service
description
with targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Part 'ServerTime' of message 'AddResponse' from service description
with
targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

R2210: If a document-literal binding in a DESCRIPTION does not specify
the
parts attribute on a soapbind:body element, the corresponding abstract
wsdl:message MUST define zero or one wsdlarts.

- Operation 'StolenVehicleAdd' on binding 'StolenBinding' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

For more details on the WS-I Basic Profile v1.1, see the specificationat
http://www.ws-i.org/Profiles/BasicProfile-1.1.html.

Error: Unable to import binding 'StolenBinding' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Unable to import operation 'StolenVehicleAdd'.

- The operation binding 'StolenVehicleAdd' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle' had invalid syntax.
Missing soapperation binding.


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

?xml version="1.0" encoding="UTF-8"?
!-- edited with XMLSpy v2006 rel. 3 sp2 (http://www.altova.com) by Nick
Locke (N/A) --
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:y="http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle"
xmlns:t="http://interfaces.xxxx-yyyyy.org.uk/types"
xmlns:st="http://interfaces.xxxx-yyyyy.org.uk/simple_types"
targetNamespace="http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle"
types
xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:t="http://interfaces.xxxx-yyyyy.org.uk/types"
targetNamespace="empty"
elementFormDefault="qualified"
xsd:import namespace="http://interfaces.xxxx-yyyyy.org.uk/types"
schemaLocation="C:\Documents and Settings\NickLocke\My Documents\Altova
Projects\Types.xsd"/
/xsd:schema
/types
message name="AddRequest"
part name="VehicleDetails" type="t:Vehicle"/
/message
message name="AddResponse"
part name="StolenVehicleId" type="st:VehicleId_Type"/
part name="ServerTime" type="st:Timestamp_Type"/
/message
portType name="SOAPport"
operation name="StolenVehicleAdd"
input message="y:AddRequest"/
output message="y:AddResponse"/
/operation
/portType
binding name="StolenBinding" type="y:SOAPport"
soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/
operation name="StolenVehicleAdd"
input
soap:body use="literal"/
/input
output
soap:body use="literal"/
/output
/operation
/binding
service name="StolenVehicle"
port name="StolenVehiclePort" binding="y:StolenBinding"
soap:address location="http://interfaces.xxxx-yyyyy.org.uk"/
/port
/service
/definitions


Hi ,
I am facing the similar . WSDL is saying correct by XML Spy . WSDL is
using nested schemas .There are many nested schema .Changing all schemas
to one schema is not possible . Is there any other tool also which can
generate the C# code .

I am getting following error
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 3.5.20706.1]
Copyright (C) Microsoft Corporation. All rights reserved.
Warning: This web reference does not conform to WS-I Basic Profile v1.1.
R2204: A document-literal binding in a DESCRIPTION MUST refer, in each of
its so
apbind:body element(s), only to wsdlart element(s) that have been
defined usin
g the element attribute.
- Part 'parametersrequest' of message
'CreateParentSubscriptionWsdlInputMessa
ge' from service description with
targetNamespace='xml.ABCCorp.com/ISC/SO/SOCo
mmonHeader'.
- Part 'parametersresponse' of message
'CreateParentSubscriptionWsdlOutputMes
sage' from service description with
targetNamespace='xml.ABCCorp.com/ISC/SO/SO
CommonHeader'.

For more details on the WS-I Basic Profile v1.1, see the specification
at http://www.ws-i.org/Profiles/BasicProfile-1.1.html.

Error: Unable to import binding 'CreateParentSubscriptionWsdlBinding' from
names
pace 'xml.ABCCorp.com/ISC/SO/SOCommonHeader'.
- Unable to import operation 'createParentSubscription'.
- The element
'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecuri
ty-.0.xsd:Security' is missing.
If you would like more help, please type "wsdl /?".

If you use imported schemas, you must specify the path to the schemas on the
command line.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer




Reply With Quote
  #8  
Old   
Mighty G
 
Posts: n/a

Default Re: Fighting WSDL.exe - 03-06-2008 , 11:15 AM



in other words...

specify all files in the command line, e.g. .wsdl, .xsd, etc.

thanks John!

"John Saunders [MVP]" wrote:

Quote:
"Meena Lalwani" <meenalalwani3 (AT) hotmail (DOT) com> wrote in message
news:85ee6cc5-419b-4466-9d08-dad124471b9b (AT) text (DOT) giganews.com...

Hello, a very newbie here, so please don't be too harsh! I have found my
way
through to using Altova XMLSpy to create what it says is a valid WSDL
file
(including picking up the Types from an external file as I shall need to
reuse them). XMLSpy is happy, but when I try to push the WSDL through the
MS
WSDL.EXE tool, it has kittens. I have added the Lecture from WSDL.EXE
first
and then my WSDL. I would welcome any help - and apologies for the length
of
the post!


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

C:\>wsdl /server /out:c:\temp c:\temp.wsdl

Microsoft (R) Web Services Description Language Utility

[Microsoft (R) .NET Framework, Version 2.0.50727.42]

Copyright (C) Microsoft Corporation. All rights reserved.

Warning: This web reference does not conform to WS-I Basic Profile v1.1.

R2204: A document-literal binding in a DESCRIPTION MUST refer, in each of
its soapbind:body element(s), only to wsdlart element(s) that have been
defined using the element attribute.

- Part 'VehicleDetails' of message 'AddRequest' from service description
with targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Part 'StolenVehicleId' of message 'AddResponse' from service
description
with targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Part 'ServerTime' of message 'AddResponse' from service description
with
targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

R2210: If a document-literal binding in a DESCRIPTION does not specify
the
parts attribute on a soapbind:body element, the corresponding abstract
wsdl:message MUST define zero or one wsdlarts.

- Operation 'StolenVehicleAdd' on binding 'StolenBinding' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

For more details on the WS-I Basic Profile v1.1, see the specificationat
http://www.ws-i.org/Profiles/BasicProfile-1.1.html.

Error: Unable to import binding 'StolenBinding' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Unable to import operation 'StolenVehicleAdd'.

- The operation binding 'StolenVehicleAdd' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle' had invalid syntax.
Missing soapperation binding.


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

?xml version="1.0" encoding="UTF-8"?
!-- edited with XMLSpy v2006 rel. 3 sp2 (http://www.altova.com) by Nick
Locke (N/A) --
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:y="http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle"
xmlns:t="http://interfaces.xxxx-yyyyy.org.uk/types"
xmlns:st="http://interfaces.xxxx-yyyyy.org.uk/simple_types"
targetNamespace="http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle"
types
xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:t="http://interfaces.xxxx-yyyyy.org.uk/types"
targetNamespace="empty"
elementFormDefault="qualified"
xsd:import namespace="http://interfaces.xxxx-yyyyy.org.uk/types"
schemaLocation="C:\Documents and Settings\NickLocke\My Documents\Altova
Projects\Types.xsd"/
/xsd:schema
/types
message name="AddRequest"
part name="VehicleDetails" type="t:Vehicle"/
/message
message name="AddResponse"
part name="StolenVehicleId" type="st:VehicleId_Type"/
part name="ServerTime" type="st:Timestamp_Type"/
/message
portType name="SOAPport"
operation name="StolenVehicleAdd"
input message="y:AddRequest"/
output message="y:AddResponse"/
/operation
/portType
binding name="StolenBinding" type="y:SOAPport"
soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/
operation name="StolenVehicleAdd"
input
soap:body use="literal"/
/input
output
soap:body use="literal"/
/output
/operation
/binding
service name="StolenVehicle"
port name="StolenVehiclePort" binding="y:StolenBinding"
soap:address location="http://interfaces.xxxx-yyyyy.org.uk"/
/port
/service
/definitions


Hi ,
I am facing the similar . WSDL is saying correct by XML Spy . WSDL is
using nested schemas .There are many nested schema .Changing all schemas
to one schema is not possible . Is there any other tool also which can
generate the C# code .

I am getting following error
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 3.5.20706.1]
Copyright (C) Microsoft Corporation. All rights reserved.
Warning: This web reference does not conform to WS-I Basic Profile v1.1.
R2204: A document-literal binding in a DESCRIPTION MUST refer, in each of
its so
apbind:body element(s), only to wsdlart element(s) that have been
defined usin
g the element attribute.
- Part 'parametersrequest' of message
'CreateParentSubscriptionWsdlInputMessa
ge' from service description with
targetNamespace='xml.ABCCorp.com/ISC/SO/SOCo
mmonHeader'.
- Part 'parametersresponse' of message
'CreateParentSubscriptionWsdlOutputMes
sage' from service description with
targetNamespace='xml.ABCCorp.com/ISC/SO/SO
CommonHeader'.

For more details on the WS-I Basic Profile v1.1, see the specification
at http://www.ws-i.org/Profiles/BasicProfile-1.1.html.

Error: Unable to import binding 'CreateParentSubscriptionWsdlBinding' from
names
pace 'xml.ABCCorp.com/ISC/SO/SOCommonHeader'.
- Unable to import operation 'createParentSubscription'.
- The element
'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecuri
ty-.0.xsd:Security' is missing.
If you would like more help, please type "wsdl /?".

If you use imported schemas, you must specify the path to the schemas on the
command line.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer




Reply With Quote
  #9  
Old   
Mighty G
 
Posts: n/a

Default Re: Fighting WSDL.exe - 03-06-2008 , 11:15 AM



in other words...

specify all files in the command line, e.g. .wsdl, .xsd, etc.

thanks John!

"John Saunders [MVP]" wrote:

Quote:
"Meena Lalwani" <meenalalwani3 (AT) hotmail (DOT) com> wrote in message
news:85ee6cc5-419b-4466-9d08-dad124471b9b (AT) text (DOT) giganews.com...

Hello, a very newbie here, so please don't be too harsh! I have found my
way
through to using Altova XMLSpy to create what it says is a valid WSDL
file
(including picking up the Types from an external file as I shall need to
reuse them). XMLSpy is happy, but when I try to push the WSDL through the
MS
WSDL.EXE tool, it has kittens. I have added the Lecture from WSDL.EXE
first
and then my WSDL. I would welcome any help - and apologies for the length
of
the post!


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

C:\>wsdl /server /out:c:\temp c:\temp.wsdl

Microsoft (R) Web Services Description Language Utility

[Microsoft (R) .NET Framework, Version 2.0.50727.42]

Copyright (C) Microsoft Corporation. All rights reserved.

Warning: This web reference does not conform to WS-I Basic Profile v1.1.

R2204: A document-literal binding in a DESCRIPTION MUST refer, in each of
its soapbind:body element(s), only to wsdlart element(s) that have been
defined using the element attribute.

- Part 'VehicleDetails' of message 'AddRequest' from service description
with targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Part 'StolenVehicleId' of message 'AddResponse' from service
description
with targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Part 'ServerTime' of message 'AddResponse' from service description
with
targetNamespace='http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

R2210: If a document-literal binding in a DESCRIPTION does not specify
the
parts attribute on a soapbind:body element, the corresponding abstract
wsdl:message MUST define zero or one wsdlarts.

- Operation 'StolenVehicleAdd' on binding 'StolenBinding' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

For more details on the WS-I Basic Profile v1.1, see the specificationat
http://www.ws-i.org/Profiles/BasicProfile-1.1.html.

Error: Unable to import binding 'StolenBinding' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle'.

- Unable to import operation 'StolenVehicleAdd'.

- The operation binding 'StolenVehicleAdd' from namespace
'http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle' had invalid syntax.
Missing soapperation binding.


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

?xml version="1.0" encoding="UTF-8"?
!-- edited with XMLSpy v2006 rel. 3 sp2 (http://www.altova.com) by Nick
Locke (N/A) --
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:y="http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle"
xmlns:t="http://interfaces.xxxx-yyyyy.org.uk/types"
xmlns:st="http://interfaces.xxxx-yyyyy.org.uk/simple_types"
targetNamespace="http://interfaces.xxxx-yyyyy.org.uk/StolenVehicle"
types
xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:t="http://interfaces.xxxx-yyyyy.org.uk/types"
targetNamespace="empty"
elementFormDefault="qualified"
xsd:import namespace="http://interfaces.xxxx-yyyyy.org.uk/types"
schemaLocation="C:\Documents and Settings\NickLocke\My Documents\Altova
Projects\Types.xsd"/
/xsd:schema
/types
message name="AddRequest"
part name="VehicleDetails" type="t:Vehicle"/
/message
message name="AddResponse"
part name="StolenVehicleId" type="st:VehicleId_Type"/
part name="ServerTime" type="st:Timestamp_Type"/
/message
portType name="SOAPport"
operation name="StolenVehicleAdd"
input message="y:AddRequest"/
output message="y:AddResponse"/
/operation
/portType
binding name="StolenBinding" type="y:SOAPport"
soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/
operation name="StolenVehicleAdd"
input
soap:body use="literal"/
/input
output
soap:body use="literal"/
/output
/operation
/binding
service name="StolenVehicle"
port name="StolenVehiclePort" binding="y:StolenBinding"
soap:address location="http://interfaces.xxxx-yyyyy.org.uk"/
/port
/service
/definitions


Hi ,
I am facing the similar . WSDL is saying correct by XML Spy . WSDL is
using nested schemas .There are many nested schema .Changing all schemas
to one schema is not possible . Is there any other tool also which can
generate the C# code .

I am getting following error
Microsoft (R) Web Services Description Language Utility
[Microsoft (R) .NET Framework, Version 3.5.20706.1]
Copyright (C) Microsoft Corporation. All rights reserved.
Warning: This web reference does not conform to WS-I Basic Profile v1.1.
R2204: A document-literal binding in a DESCRIPTION MUST refer, in each of
its so
apbind:body element(s), only to wsdlart element(s) that have been
defined usin
g the element attribute.
- Part 'parametersrequest' of message
'CreateParentSubscriptionWsdlInputMessa
ge' from service description with
targetNamespace='xml.ABCCorp.com/ISC/SO/SOCo
mmonHeader'.
- Part 'parametersresponse' of message
'CreateParentSubscriptionWsdlOutputMes
sage' from service description with
targetNamespace='xml.ABCCorp.com/ISC/SO/SO
CommonHeader'.

For more details on the WS-I Basic Profile v1.1, see the specification
at http://www.ws-i.org/Profiles/BasicProfile-1.1.html.

Error: Unable to import binding 'CreateParentSubscriptionWsdlBinding' from
names
pace 'xml.ABCCorp.com/ISC/SO/SOCommonHeader'.
- Unable to import operation 'createParentSubscription'.
- The element
'http://docs.oasis-open.org/wss/2004/01/oasis-200401-wsswssecuri
ty-.0.xsd:Security' is missing.
If you would like more help, please type "wsdl /?".

If you use imported schemas, you must specify the path to the schemas on the
command line.
--
--------------------------------------------------------------------------------
John Saunders | MVP - Windows Server System - Connected System Developer




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.