<?xml version="1.0" encoding="windows-1252"?>
<node id="948747" title="Troubles accessing data using SOAP::Lite and WSDL service" created="2012-01-19 05:33:01" updated="2012-01-19 05:33:01">
<type id="115">
perlquestion</type>
<author id="948738">
beaufils</author>
<data>
<field name="doctext">
&lt;p&gt;Here is a code snippet I use to access some SOAP methods available on a bibliographic system:&lt;/p&gt;

&lt;code&gt;
#!/usr/bin/perl

use SOAP::Lite;# +trace =&gt; qw(debug);

my $service = SOAP::Lite-&gt;service('http://hal.archives-ouvertes.fr/ws/ref.php?wsdl');

my $result = $service-&gt;getRefInstance();

use Data::Dumper;
print Dumper($result);

print $result-&gt;result,"\n";
&lt;/code&gt;

&lt;p&gt;I always get that reply&lt;/p&gt;
&lt;code&gt;
$VAR1 = {
          'string' =&gt; [
                      'ads',
                      'afssa',
                      # [...] values cut for clarity
                      'telearn',
                      'tematice'
                    ]
        };
Can't call method "result" on unblessed reference at ./test.pl line 12.
&lt;/code&gt;

&lt;p&gt;The result is announced as (in the webservices documentation), and thus should be, an ArrayOfStrings.&lt;/p&gt;

&lt;p&gt;Any idea of I am doing wrong? (Why the hell the result is not blessed?)&lt;/p&gt;

&lt;p&gt;I am really desperated...&lt;/p&gt;</field>
</data>
</node>
