CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Advanced:
passing XML to webservice as input


New User

Nov 24, 2009, 9:14 AM

Post #1 of 1 (2785 views)
passing XML to webservice as input Can't Post

Perl Gurus,

Please help me with this issue. I have been working on it for a loooong time.

I am trying to pass an XML request into a webservice using SOAP::Lite. The WSDL file is expecting an XML Document as the input.

I have been tracing the SOAP::Lite and my XML is tampered in the SOAP Request envelop.

Here is a part of my code.

my $parser = XML::DOM::Parser->new();
my $doc = $parser->parsefile(pushUserAccountStatus.xml');
my $root = $doc->getDocumentElement();

$soap = SOAP::Lite->new( proxy => '');
$result=$soap->call('PushUserAccountStatus', $xmlstring );# SOAP::Data->value($root->toString));



<?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:SOAP-ENC="" SOAP-ENV:encodingStyle="" xmlns:xsi="" xmlns:SOAP-ENV="" xmlns:xsd=""><SOAP-ENV:Body><PushUserAccountStatus><c-gensym5 xsi:type="xsd:string">&lt;pushUserAccountStatus systemEnvironmentCode="ASR-Dev" version="1.0">
&lt;creationDateTime>Tue Nov 24 15:59:40 2009&lt;/creationDateTime>

hERE all the "<" IS Converted to &lt; .. Please tell me a method to prevent this.

Or is there any other way to pass XML as an argument to a webservice.

Why does it only convert "<" instead of both "<" and ">"

Please Please help me....



Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives