Passing XML as a parameter to a WS.

  • Thread starter Thread starter BLUE
  • Start date Start date
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.
 
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.
 
Back
Top