in reply to Re^2: using getters with SOAP::WSDL inside out objects (fault)
in thread using getters with SOAP::WSDL inside out objects

Looking at MessagerParser.pm, get_class() is called on the "class_resolver".

The documentation mentions this snippet:

my $parser = SOAP::WSDL::Expat::MessageParser->new({ class_resolver => 'My::Resolver' });

It looks like a SOAP::WSDL::Expat::MessageParser is getting constructed with no class resolver specified. But the referenced docs about how to make a class resolver don't seem to actually put the pieces together about how you tell SOAP::WSDL which resolver to use. I suppose the "generator" is supposed to just take of that for you.

So perhaps you need to double check how you ran the generator or look at what it generated to figure out the missing piece?

(In case you haven't noticed, I have no experience with using SOAP.)

- tye        

Replies are listed 'Best First'.
Re^4: using getters with SOAP::WSDL inside out objects (tangled)
by mummra1 (Initiate) on May 29, 2013 at 18:47 UTC
    Thanks again Tye - I did solve this after some more digging. There is a patch available to fix the latest release that solves this issue. I applied this and now I am able to run methods on the returned objects, w/o learning the exquisite details of each SOAP message ;)
Re^4: using getters with SOAP::WSDL inside out objects (tangled)
by mummra1 (Initiate) on May 29, 2013 at 16:08 UTC

    Yeah, I'm wondering about this because there are many WSDLs with this project, one of which is working properly (can use getters), which also happens to be the only wsdl for which a service name .pm file was created under the typemaps directory when wsdl2perl was run. I may re-run this and try again. Will update if things turn out for the better - thanks!