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

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Intermediate:
SOAP::Lite with WSDL

 



jeffrey.pry
New User

Dec 1, 2010, 9:40 AM

Post #1 of 1 (481 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.


Code
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

 
 


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

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