Passing XML as a parameter to a WS.

B

BLUE

I've to pass one xml node at a time to a Web Service.
The Web Service will create an xml document and then will validate it
against a schema with qualified names.
What is the right parameter type I have to use: XmlNode, XmlElement or what?


Thanks,
Luigi.
 
M

Marc Gravell

Depends on the web-service...

For WCF I believe XmlElement; for asmx if I remember correctly XmlNode
fits the bill

Either way it is pretty easy to check with just Cassini and a test
rig.
 

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

Top