elguapo,
Since interoperability is important in your case (your #2 requirement), it
is not suggested that you send any data types that are specific to .NET. If
you plan on sending the XML Document as an XmlNode, make sure to have it
properly serialized as an XML element.
I have researched doing this and came up with 2 ways to pass an XML
Document:
1. By a string type element
2. By using the xsd:any
I have tested both solutions and they both work, however it's up to your
requirements on which you would like to do. I find that #1 is the easiest
solution to implement, but because the XML document is wrapped into a string
type, you won't be able to directly manipulate the XML (without having to
load it into another XmlDocument at least).
$2 solution is a little more difficult to implement (in Java at least, .NET
is pretty simple), but this does have the benefit of having your XML
document as part of the overall XML structure being passed by the web
service.
Hope this helps.
Eric
"elguapo" <el*******@yahoo.com> wrote in message
news:b4**************************@posting.google.c om...
Hi,
I'm setting up a service that receives a XML document, validates the
document using a schema and then returns a simple result.
I wanted to ask what the best way is of doing this, that is sending
the xml document. So far I've come across 2 way's:
1. Create a webservice that accepts a XMLNode.
2. Use HttpWebRequest to send the document as a stream.
The service would be written in .NET but the clients can be written in
any programing language.
Thanks,
EG