> do i provide XSD schemas for the XML being passed into the
> system, and the XML returned, or do i just do it for the XML being passed
> in.
Yes, both.
You should think of your service interface as message-based. The service
accepts a message and then (optionally) responds with a message. The schema
should describe what the message looks like. If you want to send only an
int, fine, but your design should wrap that in a message.
You can use the XML Schema designer in VS2003 to help you build the schema.
Other tools also work, of course. Or, if you're schema-savvy, you can use a
text editor and write it by hand.
check this out:
http://weblogs.asp.net/klaus.aschenbrenner/archive/2004/10/25/247249.aspx
-D
> Hi All,
>
[quoted text clipped - 20 lines]
>
> Rob
Modica82 - 22 Feb 2005 11:59 GMT
Hi Dino,
Thanks for the response and the link, it spured me to look at an existing
document i passed over, the link is below if anyone is interested.
http://msdn.microsoft.com/msdnmag/issues/02/12/WebServicesDesign/
I have a question though, if i have several messages that say return a
boolean, can i generate a generic response and specify that all method
responses that return a boolean are controlled by my genericBooleanResponse
or genericIntegerResponse etc etc or would it be better to define a different
response for all methods??
Any input would be good,
Regards,
Rob
> > do i provide XSD schemas for the XML being passed into the
> > system, and the XML returned, or do i just do it for the XML being passed
[quoted text clipped - 40 lines]
> >
> > Rob
Dino Chiesa [Microsoft] - 22 Feb 2005 19:52 GMT
What you describe makes sense. No problem with that.
-D
> Hi Dino,
>
[quoted text clipped - 73 lines]
>> >
>> > Rob