Hi Jim
You might want to validate the incoming XML before it is marshalled
(whoops, deserialized) into the classes that are passed to your web
methods. You can do this fairly trivially by adding in a web service
extension that uses a schema collection and then uses a validating reader
to determine if the incoming XML matches the rules defined in a schema. If
there are errors found, you can write the response (directly as an XML SOAP
fault) and abort the method call.
Another place you can do the same thing is in an HTTP Filter in IIS
(typically written in C++). In a filter, you get the raw stream received
on the wire and have full control over the response/processing.
I hope this helps
Dan Rogers
Microsoft Corporation
--------------------