
jeffrey.pry
New User
Dec 1, 2010, 9:40 AM
Post #1 of 1
(395 views)
|
|
SOAP::Lite with WSDL
|
Can't Post
|
|
Hey, I am really having trouble with getting SOAP::Lite to function well when using a WSDL. Everywhere all over the internet people write tutorials but only address sending simple types to functions. So I have two methods in a web service described by a WSDL. I use the following to retrieve all records the web service itself is returning exactly what I want (ArrayofPeople), which works fine. The problem is, I have another method where I need to pass in the ArrayofPeople from the first function but I can't seem to figure out how to take the result SOAP::Lite returns (a hash for some reason) and pass it back to another method.
my $soap = SOAP::Lite->new() ->soapversion('1.2') ->service('http://sample.com/my.wsdl') ->readable('true'); my $testvar= $soap->GetAllPeople(); # Print result as a tree. print Dumper($testvar); # Now I want to do the following... Doesn't work... The result is empty. $soap->GetHousesByPeople($testvar); Thanks for your help! Jeffrey Kevin Pry
|