|
Hi,
I am facing difficulty in accessing the return value in the client for a web service call. The client is written using SOAP::Lite library, and the web service is hosted in Java / AXIS 1.3 SOAP 1.1 server
Below is the code snip on how I am trying to access the return value
... Code snip starts ....
my $method = SOAP::Data->name('ns0:in0')
->attr({'xmlns:ns0' => 'http://updateDataRequestImpl.datasynchronization.services.group.com'});
my $params =
SOAP::Data->prefix ('ns0')
->attr ({'xmlns:ns0' => 'http://updateDataRequestImpl.datasynchronization.services.group.co
+m'})
->value(
SOAP::Data->prefix ('ns1')
->name('TableName' => 'ProfileDB')
->attr ({'xmlns:ns1' => 'http://datasynchronization.services.group.com'})
->type (''),
...
...
);
my $result;
$result = $soap->call($method => $params)
->result;
print "$result";
... Code snip ends ....
The web server call is successful and on debug, I can see the response XML as below ...
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<updateDataRequestReturn xmlns="http://updateDataRequestImpl.datasynchronization.services.group.com
+">false</updateDataRequestReturn>
</soapenv:Body>
</soapenv:Envelope>
But I am unable to access the return value (i.e. 'false') in $result variable in the above program.
Can anyone help me in this ?
Thanks in advance !!
Regards,
Saravanan
|