beaufils has asked for the wisdom of the Perl Monks concerning the following question:
Here is a code snippet I use to access some SOAP methods available on a bibliographic system:
#!/usr/bin/perl use SOAP::Lite;# +trace => qw(debug); my $service = SOAP::Lite->service('http://hal.archives-ouvertes.fr/ws/ +ref.php?wsdl'); my $result = $service->getRefInstance(); use Data::Dumper; print Dumper($result); print $result->result,"\n";
I always get that reply
$VAR1 = { 'string' => [ 'ads', 'afssa', # [...] values cut for clarity 'telearn', 'tematice' ] }; Can't call method "result" on unblessed reference at ./test.pl line 12 +.
The result is announced as (in the webservices documentation), and thus should be, an ArrayOfStrings.
Any idea of I am doing wrong? (Why the hell the result is not blessed?)
I am really desperated...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Troubles accessing data using SOAP::Lite and WSDL service
by Anonymous Monk on Jan 19, 2012 at 11:33 UTC | |
Re: Troubles accessing data using SOAP::Lite and WSDL service
by roboticus (Chancellor) on Jan 19, 2012 at 10:54 UTC | |
Re: Troubles accessing data using SOAP::Lite and WSDL service
by TomDLux (Vicar) on Jan 19, 2012 at 19:12 UTC | |
Re: Troubles accessing data using SOAP::Lite and WSDL service
by tokpela (Chaplain) on Jan 20, 2012 at 03:03 UTC |
Back to
Seekers of Perl Wisdom