Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

In a SOAP:Lite client, the following works as would be expected;
my $soap = SOAP::Lite ->uri("urn:test") ->proxy("http://127.0.0.1/cgi-bin/wambam/services/test_handler.pl") ->test_method() ->valueof('//row');
However when I do the following;
my $soap = SOAP::Lite ->service("http://127.0.0.1/htdocs/test.wsdl") ->test_method() ->valueof('//row');
I get
Can't call method "valueof" on unblessed reference at...

Could some one please explain what I'm missing here?

Why does service not return an object?

2004-12-28 Janitored by Arunbear - added code tags, as per Monastery guidelines

Replies are listed 'Best First'.
Re: WSDLs and SOAP::Lite
by osunderdog (Deacon) on Dec 27, 2004 at 22:59 UTC

    These are stacked so I don't think it is the service function that is not returning an object, but it is the test_method function that isn't returning an object.

    Just a thought...


    "Look, Shiny Things!" is not a better business strategy than compatibility and reuse.


    OSUnderdog