Loading ...
Sorry, an error occurred while loading the content.

on_fault(): finding the real error message

Expand Messages
  • Sebastien Boving & Nicole Kersting
    i m having several instances where using an on_fault() handler which has the same form as the t/...t tests that come with SOAP::Lite, that is: on_fault = sub
    Message 1 of 1 , Mar 24 11:08 AM
    • 0 Attachment
      i'm having several instances where using an on_fault() handler which
      has the same form as the t/...t tests that come with SOAP::Lite, that is:

      on_fault => sub {
      my $soap = shift;
      my $res = shift;
      ref $res ? warn(join " ", "SOAP FAULT:", $res->faultstring, "\n")
      : warn(join " ", "TRANSPORT ERROR:",
      $soap->transport->status, "\n");
      return new SOAP::SOM;
      }


      return weird:

      TRANSPORT ERROR: 200 OK

      messages.

      I assume there is no transport error, the error is somewhere else (yet
      ref($res) is false, so i can't get anything from there).

      Where is then the error?

      Why is there no proper interface to retrieve the error?!

      thanks,
      -seb.
    Your message has been successfully submitted and would be delivered to recipients shortly.