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 StolenVehicleService.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. 9 7885
"Nick Locke" <ni********@21jubileepark.comwrote in message
news:_u********************@eclipse.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
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 StolenVehicleService.wsdl simpleschema.xsd
complexschema.xsd evenmorecomplex.xsd
Hope this helps,
Andrew
"Nick Locke" <ni********@21jubileepark.comwrote in message
news:_u********************@eclipse.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 StolenVehicleService.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.
Try this:
wsdl /l:VB /si stolenvehicleservice.wsdl stolenvehicledefinitions.wsdl
stolenvehicletypes.xsd contexttypes.xsd simpletypes.xsd
Worked for me,
Ron
"Nick Locke" <ni********@21jubileepark.comwrote in message
news:NP******************************@eclipse.net. uk...
"John Saunders" <john.saunders at trizetto.comwrote:
>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\example" to avoid having to change anything.
My wsdl command line is "wsdl /si /l:VB stolenvehicleservice.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!
"RYoung" <rcyoungatinkspotdev.comwrote in message
news:O1**************@TK2MSFTNGP02.phx.gbl...
Try this:
wsdl /l:VB /si stolenvehicleservice.wsdl stolenvehicledefinitions.wsdl
stolenvehicletypes.xsd contexttypes.xsd 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.
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********@21jubileepark.comwrote in message
news:Xr********************@eclipse.net.uk...
>
"RYoung" <rcyoungatinkspotdev.comwrote in message
news:O1**************@TK2MSFTNGP02.phx.gbl...
>Try this:
wsdl /l:VB /si stolenvehicleservice.wsdl stolenvehicledefinitions.wsdl stolenvehicletypes.xsd contexttypes.xsd 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.
"RYoung" <rcyoungatinkspotdev.comwrote in message
news:u$**************@TK2MSFTNGP03.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
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********@21jubileepark.comwrote in message
news:bp********************@eclipse.net.uk...
"RYoung" <rcyoungatinkspotdev.comwrote in message
news:u$**************@TK2MSFTNGP03.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
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" <rcyoungatinkspotdev.comwrote in message
news:eW**************@TK2MSFTNGP03.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********@21jubileepark.comwrote in message
news:bp********************@eclipse.net.uk...
>"RYoung" <rcyoungatinkspotdev.comwrote in message news:u$**************@TK2MSFTNGP03.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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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:
"...
|
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...
|
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,...
|
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...
|
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...
| |
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...
|
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...
|
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:
...
|
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...
|
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...
|
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,...
| |
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...
|
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,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
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...
|
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...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |