web service parameters that match a schema


Jeremy Chapman

I built a web service method that has one parameter of type XmlDocument. In
the methods code I load a xsd file and validate the xml document against the
xsd schema. This does work, but is there any way to specify in the method
declaration that the parameter must be an xml document matching a specific
schema? What I am hoping to do is make the wsdl contain the schema that is
required for the parameter. Anyone know how I can do this?


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question