CPAN::Forum
SOAP-Lite - Re: Accessing return value using SOAP::Lite library
| Posted on Wed Jun 6 06:29:15 2007 by saramic in response to 5307 (See the whole thread of 2) |
| Re: Accessing return value using SOAP::Lite library |
|
presumably you have run Data::Dumper on your result ($result) to show that it is a SOAP::SOM object
use Data::Dumper; print Dumper $result;
if all is well then I do not see why
print $result->result
should not print result. That said, I am not familiar with the way you are calling, ie.
$result = $soap->call($method => $params)
print $result->result
I have changed you code a little to get at the $result object which should be of type SOAP::SOM if the result call above does not work you should be able to do the following
my ($returnValue) = @{$result->method}{qw(updateDataRequestReturn)}
this will get the "updateDataRequestReturn" tag contents from the SOAP envelope (XML). More completely I would think that your client should be written as follows:
my $result = SOAP::Lite
->uri('http://updateDataRequestImpl.datasynchronization.services.group.com')
->proxy('<URL OF YOUR END POINT>')
->method($params);
print $result->result;
my ($returnValue) = @{$result->method}{qw(updateDataRequestReturn)}
print $returnValue
hope that helps Michael
|
| Write a response |
(9)
]