This may be a SOAP::Lite specific question, but maybe not. In the script
below, the $soap variable gets a hash reference after calling ListBooks().
(I've verified this by printing the value itself, rather than calling
"valueof" on it.)

However, when I call valueof, it gives a "can't call method valueof on
unblessed reference" error. The returned object should deserialize into an
XPATH-friendly object, which would let me iterate through it with a for
loop. Unless valueof works, though, I can't get the object I need. How I can
get this typed properly?

Matthew

--

        #!/usr/bin/perl -w
        
        use strict;
        use SOAP::Lite +trace => "debug",
                service =>
'http://www.francisshanahan.com/TheHolyBible.asmx?wsdl
<http://www.francisshanahan.com/TheHolyBible.asmx?wsdl> ';
        
        my $soap = ListBooks()->valueof("//BookTitle");
        
        print "$soap\n";
        

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to