SOAP-WSDL - Re: retrieving output

Posted on Wed Apr 23 18:17:32 2008 by rhumbliner in response to 7727 (See the whole thread of 9)
Re: retrieving output

i'm sorry. i must be really obtuse. i've read every line of code generated by wsdl2perl and studied the pod's. i just can't figure out which $obj you're referring to. the main pod shows only 2 objects: $interface and $response.

[~] perldoc MyInterfaces::WSfsPublicQuery::Services_WSfsPublicQuery_Port NAME MyInterfaces::WSfsPublicQuery::Services_WSfsPublicQuery_Port - SOAP Interface for the WSfsPublicQuery Web Service SYNOPSIS use MyInterfaces::WSfsPublicQuery::Services_WSfsPublicQuery_Port; my $interface = MyInterfaces::WSfsPublicQuery::Services_WSfsPublicQuery_Port->new(); my $response; $response = $interface->fsPublic_SQL(); DESCRIPTION SOAP Interface for the WSfsPublicQuery web service located at http://infrawebdev.fs.usda.gov:5556/ws/fs_public.webService:WSfsPublicQuery.

but when i access $response->get_all() no methods are listed:

Can't locate object method "get_all" via package "MyElements::fsPublic_SQLOutput". Valid methods are: at /usr/lib64/perl5/site_perl/5.8.8/SOAP/WSDL/XSD/Typelib/ComplexType.pm line 42


if i dump $response it tells me i've got the object i think it want. the code
print Dumper($response);
tells me i've got an object of type fsPublic_SQLOutput but there are no methods to access this object:

$response = bless( do{\(my $o = 19)}, 'MyElements::fsPublic_SQLOutput' );


i'm pretty certain the data is being returned from the server, because if i replace the simple hash in the fsPublic_SQL() call with a MyTypes::fsPublic_SQLInput object the call generates a fault and dumps the entire dataset i'm expecting.

i'm sorry to be a pain, but i'm at a loss to figure this out.

thanks,
tom
Direct Responses: 7733 | Write a response