When using the service() approach, the result of your createFault()
is not a SOM object, it really is the result of your call. So you
can't call the fault() method on it, nor the result() method either.
To get the flexibility you want you need to specify the proxy and
uri directly.

Regards,
Duncan Cameron

Paul Kulchenko

Hi Duncan, ... While that s correct you can still access this information using ... $r = $api_server- call(); # call() without parameters returns the result of

Message 2 of 3
, Dec 18, 2002

0 Attachment

Hi Duncan,

> When using the service() approach, the result of your createFault()
> is not a SOM object, it really is the result of your call. So you

While that's correct you can still access this information using
call() method:

> >$result = $api_server->createFault(1);

$r = $api_server->call(); # call() without parameters returns the
result of the last call

die $r->faultstring if $r->fault;

> >my $api_server = SOAP::Lite
> > -> soapversion(1.2)

soapversion() call shouldn't be made at run-time (this syntax will be
disallowed in the future). The correct usage is this: