Re: Creating a Xml Web Service contract from an XSD and lots of coffee



"Bill Sempf" <sempf@xxxxxxxxxxxxxxxxx> wrote in message
news:0A77863D-563E-4787-9E0C-4685EA4CB69B@xxxxxxxxxxxxxxxx
I have a XSD that describes a standard (IEEE) implementation of a contract
and related objects. I need to create a web service that implements the
XSD.
I realize that I can read the XSD and create it by hand, but that doesn't
seem to be the point. It seems more reasonable that I chould just be able
to
use the XSD as a cookie cutter to generate the WSDL - or, more accurately,
generate the ASMX code that generates the WSDL.

So my question is this: am I missing something? Does VS2005 do this and I
am just missing it? Is there a third party tool that does this really
well
that I am lacking?

On that thought, I also need to make a database to hold the contents of
the
objects in a relational fashion. I can do this by hand too. Should I
have
to? This is the 'back end' of the same process. Shouldn't it at least be
semi-automated?

I'd appreciate any thoughts from anyone who knows more than me about this.

The XSD file isn't enough to specify a web service contract. It may tell you
the shape of the messages, but it can't, for instance, tell you that
operation X accepts messages A and B as parameters, returns C and D as
results, or may produce faults F and G. It can't tell you about the service,
either.

The XSD can be referenced from a WSDL, and the WSDL can be used as input to
WSDL.EXE /SERVER to generate a server stub. You can inherit from this and
create your server.

John

P.S. Some compliance checkers I've used complain about using wsdl:import to
import a schema. Apparently, you're supposed to do something like put an
empty schema in the wsdl:types section, and have that schema include the
real one. Something like that.

I ignored the compliance checker and continued developing my web service
using wsdl:import! I'll "fix" it in a future release.


.



Relevant Pages

  • RE: Two questions for gurus about using strongly typed DataSet in Web
    ... > CustomerDataSet) in WSDL instead of using the WSDL <import ... > Apparently, if I include CustomerDataSet schema definition in WSDL types, it ... How to send a strongly typed DataSet over SOAP without the XSD? ... > typed DataSet between Web service server and client. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: XSD to Web Service
    ... Use XSD.EXE to generate a class file. ... Modify WSDL to now point to external server address. ... >I have to interact with a web service created by an external company. ... They have supplied me with a XSD and some ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Get XSD from ASMX
    ... Is the WSDL file supposed to be a valid XSD file?. ... No, a WSDL document describes the web service, it uses XSD inside to describe the types used but there are additional elements to completely ...
    (microsoft.public.dotnet.xml)
  • RE: webmethod based on a xsd
    ... By getting the xsd from your customer you're in the position of developing ... your web service using the "contract first" pattern. ... > sample xml so i can build my stuff around his xml. ... the webservice puts the webmethod name and parameter name in ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Biztalk 2004, more mute than Helen Keller?
    ... XML as sent to the web service, used XSD to produce an XSD, cleaned it ... and got that right into BizTalk. ... On the reference to Helen Keller ... ...
    (microsoft.public.biztalk.general)