-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [EMAIL PROTECTED] wrote: |>I call it like this: |> |> use SOAP::Lite +trace => [qw(all)]; |> |> my $soap = SOAP::Lite->uri('http://<my server>/Demo'); |> my $proxy = $soap->proxy('http://<my server>/steve/rpc/'); |> my $obj = $proxy->hi(); |> print $obj->result; | | | try | | my $soap = SOAP::Lite | ->uri('http://<my server>/Demo') | ->proxy('http://<my server>/steve/rpc/') | ->on_fault(sub { my ($soap, $res) = @_; | die ref $res ? | $res->faultdetail : | $soap->transport->status, "\n" | }); | | that should help you with tracing errors. also, it's been a while since | I've played around with SOAP::Lite, but IIRC unless you used +autodispatch | your call ought to look like | | my $obj = $soap->call('hi'); | print $obj->result;
Neither change had any effect. The output is exactly the same; no additional output from the fault handler. This is my client now: use SOAP::Lite +trace => [qw(all)]; my $soap = SOAP::Lite->uri('http://<my server>/Demo') ~ ->proxy('http://<my server>/steve/rpc/')->on_fault( ~ sub { ~ my ($soap, $res) = @_; ~ die ref $res ? $res->faultdetail : $soap->transport->status, "\n"; ~ } ~ ); my $obj = $soap->call('hi'); print $obj->result; ~From the output, it looks like the call is being made, and it is succeeding: SOAP::Transport::HTTP::Client::send_receive: POST http://www.cm.aol.com/steve/rpc/ HTTP/1.1 Accept: text/xml Accept: multipart/* Content-Length: 449 Content-Type: text/xml; charset=utf-8 SOAPAction: "http://www.cm.aol.com/Demo6#hi" <?xml version="1.0" encoding="UTF-8"?><SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/1999/XMLSchema" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body><namesp1:hi xmlns:namesp1="http://www.cm.aol.com/Demo6"/></SOAP-ENV:Body></SOAP-ENV:Envelope> SOAP::Transport::HTTP::Client::send_receive: HTTP::Response=HASH(0x19076e8) SOAP::Transport::HTTP::Client::send_receive: HTTP/0.9 200 (OK) EOF Client-Date: Thu, 18 Aug 2005 17:39:21 GMT Client-Peer: 10.178.2.10:80 Client-Response-Num: 1 On the other hand, I get similar results with known bad input (calling a method which doesn't exist, putting a non-existent module name in the uri, etc) so I'm pretty sure the module is never really loaded. Thanks - -- Steve Baker AOL Configuration Management kiku wa ittoki no haji kikanu wa matsudai no haji -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFDBMw0z179gX3oLkwRAjuzAKCd/K90YHax+55W4m3Kd3gkitraHgCfabAc trN0eXt2JuZn8PXnpeaGycI= =ceYT -----END PGP SIGNATURE-----