Validating XML in a WebMethod parameter - 06-19-2006 , 04:18 AM
I've set up a SoapExtension class and XSD schema in order to validate the
parameters of a webservice method call. However, I'm having a problem with
one of the parameters - it's a string which accepts an XML fragment and I
can't get it to validate using the schema. I need to go back to basics with
this I think - can anyone point me to examples/articles of this technique?
i.e. How do I define a webmethod parameter in the XSD schema that will
validate an XML fragment? It's very simple XML too :-) e.g.
<nodeb id="..." />
RE: Validating XML in a WebMethod parameter - 06-19-2006 , 11:08 PM
Do you need to validate it with a webservice method or directly in the
schema? If using a method, you can define the parameter as an XmlFragment.
If it loads corrects, it is validate. If there is any misunderstanding
here, please feel free to let me know.
Microsoft Online Community Support
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
(This posting is provided "AS IS", with no warranties, and confers no
|Thread Tools||Search this Thread|