joec_ has asked for the wisdom of the Perl Monks concerning the following question:

Hi,

I have a webservice using SOAP::Lite which returns a simple string 'hello world'. I have no problem accessing this from a terminal or through python.

What i am having trouble with is accessing the service through Visual Studio. I have pointed VS at my WSDL and it sees my method hi(), but its complaining i am returning plain text and not XML.

Is there a way using SOAP::Lite to just return the raw XML for the entire SOAP envelope? For example at the moment i just do

print $soap->hi->result; and this prints 'hello world'.

What i would need (i think) is something along the lines of print $soap->hi->raw_xml;

Any ideas would be appreciated. - Does anyone else have experience in this area - i am new to webservices :)

Thanks

Joe

-----

Eschew obfuscation, espouse eludication!

Replies are listed 'Best First'.
Re: SOAP::Lite response xml
by locked_user sundialsvc4 (Abbot) on Mar 03, 2009 at 18:56 UTC

    What bubbles-up to the top of my poor cranium is:   do you have to put out some kind of Content-Type: HTTP header? In other words, to tell the client that what you are sending him is XML?

Re: SOAP::Lite response xml
by Anonymous Monk on Mar 04, 2009 at 07:24 UTC