Cross: How to use XSD

  • Thread starter Thread starter Marko
  • Start date Start date
M

Marko

I work with web services based on WSDL and I can add web reference in visual
studio. After that I can declare objets which are instances of webservices.
I can add values to objest properties and call functions of these objects.
Everithing is fine.

But now, I have to use XSD based web service and I don't know how to start.
How to include functions (classes) of this web service? How to add web
reference... or I need to use some other techniques?

Can somebody help how to start?
 
Hello marko,

What do u mean by "XSD based" ?!
XSD is good to design your message and then generate and validate all messages
it's widely used in heterogeneous systems for example when u design the canonical
schema and convert all mesages into

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


m> I work with web services based on WSDL and I can add web reference in
m> visual studio. After that I can declare objets which are instances of
m> webservices. I can add values to objest properties and call functions
m> of these objects. Everithing is fine.
m>
m> But now, I have to use XSD based web service and I don't know how to
m> start. How to include functions (classes) of this web service? How to
m> add web reference... or I need to use some other techniques?
m>
m> Can somebody help how to start?
m>
 
Marko said:
I work with web services based on WSDL and I can add web reference in
visual studio. After that I can declare objets which are instances of
webservices. I can add values to objest properties and call functions of
these objects. Everithing is fine.

But now, I have to use XSD based web service and I don't know how to
start. How to include functions (classes) of this web service? How to add
web reference... or I need to use some other techniques?

Can somebody help how to start?

I don't know about XML Schema Document (XSD) Based web services - but here
is a good site with good tutorials on XML-related subjects:
www.w3schools.com
 
What do u mean by "XSD based" ?!
XSD is good to design your message and then generate and validate all
messages it's widely used in heterogeneous systems for example when u
design the canonical schema and convert all mesages into

I think Marko means schema first design.

You're given an XSD in which you need to generate a matching WSDL. Does
anyone have experience with this? I'm facing the same issue. It seems .NET
tools are designed for function first design?
 
Check into xsd.exe

XSD.exe is horribly limited and doesn't parse many XSDs. Furthermore, I
don't think it works well in a web service environment - because the
WSDL needs to use the pre-defined XSDs not use class representations of
the source code.
 
You can get quite a bit out of XSD.exe, but you may want to make changes by
hand as well, it can tend to make ugly classes. Personally I use BizTalk a
lot, so XSD is it's native language. I love the product and it's Visual
Studio based development.
 
Back
Top