I'm a bit of a newbie to web services, and would appreciate some
thoughts as to the best approach for making a web service available to
various, possibly non-microsoft, clients.
I need to accept "orders" which are in an XML format defined by an XML
schema (XSD) set by an external standards body.
I've already got a set of class definitions which allow me to
deserialize a valid XML order into an Order object (although I'm not
absolutely certain that the class definitions exactly match the Schema
in terms of "IsNullable=False" decorations etc).
So my question is:
For easiest interoperability with other systems, should I define my
WebService as accepting an XML string, and also send the callers the
XSD, or as accepting one of my Order objects, and let the WSDL sort it
all out?
I know a reasonable answer is "get them both working and let the caller
decide", but I'm keen to hear any other ideas or insights out there.
Many Thanks