4444using Soap::Lite with WSDL
- Feb 25, 2005The basics of using SOAP::Lite with WSDL are pretty simple, as discussed
in http://guide.soaplite.com/, but there's something I haven't been able
to figure out yet.
When not using WSDL, the perl code is something like:
In this case an object is returned from the WS method hi(), and that
object will take calls like result(), fault(), etc. When using WSDL the
code is something like:
Now an actual value is returned from the call to the WS method!
It turns out that the object returned from:
my $obj = SOAP::Lite
is blessed into the name of the service, and that object's
ISA=(Exporter, SOAP::Lite). If I call $obj->fault() I get an error and
a message listing the service methods, and informing me that those are
the only methods available.
So, has anyone figured out how to get at the meta-info? A method call
like $obj->SUPER::fault doesn't work, because it refers to the SUPER of
the package the code is called in, not the SUPER of the object $obj.
Any hints appreciated...
- Next post in topic >>