XmlNode in Web Services...

A

arc

Requirements have made me to come up with a Web Service that accepts XML as
input.
Figured out that XmlNode is possible to work with and it works like a gem.

Now i am thinking of non-.NET clients, would they be able to call this Web
service and send XML document.
Is this type supported by the clients such as PERL, Python that need to call
this Web service?
If not what is the remedy apart from using WS Attachments?


[WebMethod]
public string XMLInputMethod(XmlNode xmlDocument)
{
.....
}

Thanks,
Arc
 
D

David Shreffler

The "input type" on a .NET web service method is just what data type the web
service will deserialize data into. As long as all of your other clients
are communicating via SOAP, they will see the XMLNode complex data type in
the "types" element in the web service's WSDL. And since SOAP is in XML
anyway, I'm sure an XMLNode will serialize with no problems.
 
T

Tomas Restrepo \(MVP\)

Hi,
Now i am thinking of non-.NET clients, would they be able to call this Web
service and send XML document.
Sure.

Is this type supported by the clients such as PERL, Python that need to call
this Web service?

Don't see why not. When you do that, the WSDL generated simply states the
service can take any valid XML as input (i.e. xsd:any).
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top