473,624 Members | 2,119 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

wsdl.exe problem

I have a fairly simple structure:

- Simple Types in an XSD
- Complex Types (one file) in another XSD, importing the Simple Types
- More Complex Types (second file) in another XSD, again importing the
Simple Types
- A WSDL Definitions file, importing the two Complex Types files
- A WSDL Service file, importing the WSDL Definitions file

I have put all that together with XML Spy and that seems happy. I can also
parse the WSDL Service file from SOAPSonar and end up with everything
correctly imported.

BUT, wsdl.exe does this:

C:\WSDL>wsdl /si /l:VB StolenVehicleSe rvice.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: Cannot find definition for
http://namespaces.xxxx-yyyyy.org.uk/...hicle:SOAPport.

Service Description with namespace
http://namespaces.xxxx-yyyyy.org.uk/.../StolenVehicle is
missing.

Parameter name: name

I can see details of a similar problem in MSDN etc, but that dates back to
2003. Can someone please shed some light on what I need to do?

Thanks.
Oct 30 '06 #1
9 7891
"Nick Locke" <ni********@21j ubileepark.comw rote in message
news:_u******** ************@ec lipse.net.uk...
>I have a fairly simple structure:

- Simple Types in an XSD
- Complex Types (one file) in another XSD, importing the Simple Types
- More Complex Types (second file) in another XSD, again importing the
Simple Types
- A WSDL Definitions file, importing the two Complex Types files
- A WSDL Service file, importing the WSDL Definitions file

I have put all that together with XML Spy and that seems happy. I can
also parse the WSDL Service file from SOAPSonar and end up with everything
correctly imported.
Nick, please supply a small reproducer.

John
Oct 31 '06 #2
Hi Nick,

Unfortunately i'm no expert with wsdl.exe, but in the past i found that i
had to explicitly tell wsdl.exe where any external xsd schemas were (even
when they were in the same directory)

C:\WSDL>wsdl /si /l:VB StolenVehicleSe rvice.wsdl simpleschema.xs d
complexschema.x sd evenmorecomplex .xsd

Hope this helps,
Andrew

"Nick Locke" <ni********@21j ubileepark.comw rote in message
news:_u******** ************@ec lipse.net.uk...
>I have a fairly simple structure:

- Simple Types in an XSD
- Complex Types (one file) in another XSD, importing the Simple Types
- More Complex Types (second file) in another XSD, again importing the
Simple Types
- A WSDL Definitions file, importing the two Complex Types files
- A WSDL Service file, importing the WSDL Definitions file

I have put all that together with XML Spy and that seems happy. I can
also parse the WSDL Service file from SOAPSonar and end up with everything
correctly imported.

BUT, wsdl.exe does this:

C:\WSDL>wsdl /si /l:VB StolenVehicleSe rvice.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: Cannot find definition for
http://namespaces.xxxx-yyyyy.org.uk/...hicle:SOAPport.

Service Description with namespace
http://namespaces.xxxx-yyyyy.org.uk/.../StolenVehicle is
missing.

Parameter name: name

I can see details of a similar problem in MSDN etc, but that dates back to
2003. Can someone please shed some light on what I need to do?

Thanks.


Oct 31 '06 #3
"John Saunders" <john.saunder s at trizetto.comwro te:
Nick, please supply a small reproducer.
Hopefully, this is small enough! I have hardcoded full "file://" URIs in
response to an earlier recommendation - that means you need everything in a
directory "c:\wsdl\exampl e" to avoid having to change anything.

My wsdl command line is "wsdl /si /l:VB stolenvehiclese rvice.wsdl". I have
also tried providing all of the other files names on the command line as
suggested in Andrew's post.

I get the same results with/without full URI references and with/without the
extra files on the command.

I really hope that I have done something stupid which is easy to find!

Many thanks for your help.

Nick

My first attempt at this with the files as attachments seems not to have
appeared in the group. So, I have put the files on my server:

http://nick.21jubileepark.com/wsdl/SimpleTypes.xsd
http://nick.21jubileepark.com/wsdl/ContextTypes.xsd
http://nick.21jubileepark.com/wsdl/S...hicleTypes.xsd
http://nick.21jubileepark.com/wsdl/S...finitions.wsdl
http://nick.21jubileepark.com/wsdl/S...leService.wsdl

I hope those links all work!
Oct 31 '06 #4
Try this:

wsdl /l:VB /si stolenvehiclese rvice.wsdl stolenvehiclede finitions.wsdl
stolenvehiclety pes.xsd contexttypes.xs d simpletypes.xsd

Worked for me,
Ron

"Nick Locke" <ni********@21j ubileepark.comw rote in message
news:NP******** *************** *******@eclipse .net.uk...
"John Saunders" <john.saunder s at trizetto.comwro te:
>Nick, please supply a small reproducer.

Hopefully, this is small enough! I have hardcoded full "file://" URIs in
response to an earlier recommendation - that means you need everything in
a
directory "c:\wsdl\exampl e" to avoid having to change anything.

My wsdl command line is "wsdl /si /l:VB stolenvehiclese rvice.wsdl". I
have
also tried providing all of the other files names on the command line as
suggested in Andrew's post.

I get the same results with/without full URI references and with/without
the
extra files on the command.

I really hope that I have done something stupid which is easy to find!

Many thanks for your help.

Nick

My first attempt at this with the files as attachments seems not to have
appeared in the group. So, I have put the files on my server:

http://nick.21jubileepark.com/wsdl/SimpleTypes.xsd
http://nick.21jubileepark.com/wsdl/ContextTypes.xsd
http://nick.21jubileepark.com/wsdl/S...hicleTypes.xsd
http://nick.21jubileepark.com/wsdl/S...finitions.wsdl
http://nick.21jubileepark.com/wsdl/S...leService.wsdl

I hope those links all work!

Oct 31 '06 #5

"RYoung" <rcyoungatinksp otdev.comwrote in message
news:O1******** ******@TK2MSFTN GP02.phx.gbl...
Try this:

wsdl /l:VB /si stolenvehiclese rvice.wsdl stolenvehiclede finitions.wsdl
stolenvehiclety pes.xsd contexttypes.xs d simpletypes.xsd

Worked for me,
Ron
Thanks Ron. I can only assume that, somewhere along the line, I was
mis-spelling one of the file names or something equally amateurish! Many
thanks.
Oct 31 '06 #6
Your welcome.
Did you design the WSDL with XmlSpy? I've been experimenting with designing
contracts up front using XmlSpy and was wondering if you could share any
reasons why you chose that approach.

Thanks,
Ron

"Nick Locke" <ni********@21j ubileepark.comw rote in message
news:Xr******** ************@ec lipse.net.uk...
>
"RYoung" <rcyoungatinksp otdev.comwrote in message
news:O1******** ******@TK2MSFTN GP02.phx.gbl...
>Try this:

wsdl /l:VB /si stolenvehiclese rvice.wsdl stolenvehiclede finitions.wsdl
stolenvehiclet ypes.xsd contexttypes.xs d simpletypes.xsd

Worked for me,
Ron

Thanks Ron. I can only assume that, somewhere along the line, I was
mis-spelling one of the file names or something equally amateurish! Many
thanks.

Oct 31 '06 #7
"RYoung" <rcyoungatinksp otdev.comwrote in message
news:u$******** ******@TK2MSFTN GP03.phx.gbl...
Your welcome.
Did you design the WSDL with XmlSpy? I've been experimenting with
designing contracts up front using XmlSpy and was wondering if you could
share any reasons why you chose that approach.
Good question! Yes I did design the WSDL (and the XSDs) with XMLSpy. I
decided to go "contract first" because it seemed the right hting to do as I
shall have many different "consumers" and they will all want to sign-off a
spec before any code is cut. Having tried both ways around, it also seemed
to be a bit cleaner that way.

I chose the tool because it seemed to be fairly well respected in the
write-ups. That said, I am a bit disappointed with the level of sanity
checking that it does - it is very eay to get something which says "valid"
only to find that either wsdl.exe or SOAPSonar chokes. I only have an
evaluation copy at the moment - my team will need to decide whether they
need a full copy or whether, for what we need, Notepad will do the job.

Does that help?

Nick
Oct 31 '06 #8
Thanks Nick,

I'm currently reading "Service Oriented Architecture" by Thomas Erl,
published by Prentice Hall, in which Erl elaborates on the composability of
WSDL to form new services, and the .xsd, .wsdl files you posted certainly
demonstrated that aspect, I believe.

Anyways, thanks for your response on that - I agree that contract first in a
tool other than VS does seem to put me in a different state of mind, I
actually like that separation and ability to focus on aspects of the
application/system.

I haven't had much success developing anything close to what you have posted
with XmlSpy's WSDL editor, - that is in as far as the separation you've
achieved between types, service operations, and definitions, but I'm
definetly going to study those files, if you don't mind, and most likely
will learn that approach.

Ron

"Nick Locke" <ni********@21j ubileepark.comw rote in message
news:bp******** ************@ec lipse.net.uk...
"RYoung" <rcyoungatinksp otdev.comwrote in message
news:u$******** ******@TK2MSFTN GP03.phx.gbl...
>Your welcome.
Did you design the WSDL with XmlSpy? I've been experimenting with
designing contracts up front using XmlSpy and was wondering if you could
share any reasons why you chose that approach.

Good question! Yes I did design the WSDL (and the XSDs) with XMLSpy. I
decided to go "contract first" because it seemed the right hting to do as
I shall have many different "consumers" and they will all want to sign-off
a spec before any code is cut. Having tried both ways around, it also
seemed to be a bit cleaner that way.

I chose the tool because it seemed to be fairly well respected in the
write-ups. That said, I am a bit disappointed with the level of sanity
checking that it does - it is very eay to get something which says "valid"
only to find that either wsdl.exe or SOAPSonar chokes. I only have an
evaluation copy at the moment - my team will need to decide whether they
need a full copy or whether, for what we need, Notepad will do the job.

Does that help?

Nick

Nov 1 '06 #9
XMLSpy did virtually nothing to help the splitting process become an
intuitive one. It was hard graft with manual copies between files and
constant validation to make sure all was still ok. I really do believe that
the tools are not quite there yet!

"RYoung" <rcyoungatinksp otdev.comwrote in message
news:eW******** ******@TK2MSFTN GP03.phx.gbl...
Thanks Nick,

I'm currently reading "Service Oriented Architecture" by Thomas Erl,
published by Prentice Hall, in which Erl elaborates on the composability
of WSDL to form new services, and the .xsd, .wsdl files you posted
certainly demonstrated that aspect, I believe.

Anyways, thanks for your response on that - I agree that contract first in
a tool other than VS does seem to put me in a different state of mind, I
actually like that separation and ability to focus on aspects of the
application/system.

I haven't had much success developing anything close to what you have
posted with XmlSpy's WSDL editor, - that is in as far as the separation
you've achieved between types, service operations, and definitions, but
I'm definetly going to study those files, if you don't mind, and most
likely will learn that approach.

Ron

"Nick Locke" <ni********@21j ubileepark.comw rote in message
news:bp******** ************@ec lipse.net.uk...
>"RYoung" <rcyoungatinksp otdev.comwrote in message
news:u$******* *******@TK2MSFT NGP03.phx.gbl.. .
>>Your welcome.
Did you design the WSDL with XmlSpy? I've been experimenting with
designing contracts up front using XmlSpy and was wondering if you could
share any reasons why you chose that approach.

Good question! Yes I did design the WSDL (and the XSDs) with XMLSpy. I
decided to go "contract first" because it seemed the right hting to do as
I shall have many different "consumers" and they will all want to
sign-off a spec before any code is cut. Having tried both ways around,
it also seemed to be a bit cleaner that way.

I chose the tool because it seemed to be fairly well respected in the
write-ups. That said, I am a bit disappointed with the level of sanity
checking that it does - it is very eay to get something which says
"valid" only to find that either wsdl.exe or SOAPSonar chokes. I only
have an evaluation copy at the moment - my team will need to decide
whether they need a full copy or whether, for what we need, Notepad will
do the job.

Does that help?

Nick


Nov 2 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
5610
by: trexim | last post by:
Hi, I am trying to create a Web Reference for CSTA using the URL http://www.ecma-international.org/standards/ecma-348/csta-wsdl/csta-wsdl-all-operations.wsdl Visual .Net complains that: " The document was understood, but it could not be processed. - The WSDL document contains links that could not be resolved. - There was an error downloading
1
9897
by: ffhansix | last post by:
Hi, I am having problems with generating a c# proxy class from a IBM websphere WSDL file, when running the wsdl.exe to create the c# proxy file command i recieve an error: Warning: one or more operations were skipped. Warnings were encountered. Review generated source comments for more details.
6
7192
by: Naveed Anwar | last post by:
how a tcp server running on given uri like "soap:tcp://localhost:8080/MyReceiver" will return wsdl. In normal web service case which runs on http returns wsdl by simply appending '?wsdl' in url, but I am confused how a tcp server will do the same. plzzzzzzzzz reply :((!! thanks:) in advance
1
5044
by: Mike Logan | last post by:
I have a schema that defines my messages and objects. I then have a WSDL that defines the web services. I have my sample XSD, sample WSDL, and the code generated from WSDL.exe. In the generated code from WSDL.exe, the "applicationList" object is not a array or "application", which is what it should be, correct? Thanks for the help. <?xml version="1.0" encoding="utf-8" ?> <xs:schema targetNamespace="http://me.com/xml/xsd/AppSec1.xsd"
5
10324
by: Mike Logan | last post by:
I used WSDL.exe to generate a client side web proxy for a web service, called the web service, got the results but an array returned by the web service is not in the results. However if I use "Add Web Reference" for the same service the same function works appropriately. Here is the client proxy generated from WSDL.exe <System.Web.Services.Protocols.SoapDocumentMethodAttribute("capeconnect:AppSec:AppSecPortType#getApplicationUsers",
0
1708
by: Andreas | last post by:
Hi, Im trying to consume a webservice described by the WSDL below, however When i try to add the WSDL it does not work, tried to run it through WSDL.EXE It validates in XMLSpy, but WSDL.exe pukes on it, as does when i try to use it in a Vs.Net project... Any ideas how to go forward with this? Output from WSDL.EXE; Error: Unable to import binding
5
4908
by: CindyRob | last post by:
Using .NET framework 1.1 SP1, .NET framework SDK 1.1 SP1, Visual Studio .NET 2003, hotfixes 892202 and 823639. I create a proxy class using wsdl.exe, and in the serialized XML request, I see that any elements that are nested elements in the schema (not global elements) have their namespaces set to the null namespace. I can see that the proxy classes have serialization attributes specifying these nested elements as unqualified: ///...
9
11925
by: Cesar | last post by:
Hello there, A java programmer sent me a wsdl file, which I have to use to consume his web methods. When I run the wsld.exe tool to generate the class' code, I get the following message: CODEGEN: The operation binding 'getAvaluos' from namespace 'urn:m15.AvaluosPortType' was ignored. The combination of style=rpc with use=literal is not supported.
5
4971
by: Nick K. | last post by:
I use wsdl.exe to generate client code to call a web service. The actual web service is generated with the BizTalk Web Services Publishing Wizard. I'm not sure this is particular to the BizTalk code but the calls to web methods pass parameters by ref so that I have to call it like: XmlDocument doc = new XmlDocument(); doc.LoadXml(message);
0
1406
by: StephenLiversidge | last post by:
Hi im having a problem with my wsdl, It generates perfectly and I can create the objects needed from the contract perfectly. The problem comes when I try to pass the object back into the getInitialAvailability function so that I can get the response back. Heres the error im gettting. System.Web.Services.Protocols.SoapException: Server did not recognize the value of HTTP Header SOAPAction: http://v2_0.soap:getInitialAvailabilityRequest. ...
0
8234
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8172
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8677
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8620
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
6110
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5563
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4079
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4174
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1482
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.