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

Re: [soaplite] Re: How to get errors

Expand Messages
  • rahed
    ... You should get the fault this way. You may changed the $som object before calling a fault method. -- Radek
    Message 1 of 15 , Oct 8, 2008
    • 0 Attachment
      > I'm trying to get the fault like this:
      >
      > if ($som->fault) {
      > print $som->faultdetail; # returns value of 'detail' element as
      > # string or object
      > print $som->faultcode; #
      > print $som->faultstring; # also available
      > print $som->faultactor; #
      > }
      > else {print "result:$som\n";}

      You should get the fault this way. You may changed the $som object
      before calling a fault method.


      --
      Radek
    • rahed
      ... A request expects a soap structure which is done by SOAP::Data class. Check the SOAP::Lite docs. -- Radek
      Message 2 of 15 , Oct 8, 2008
      • 0 Attachment
        > great, this works! Thanks a lot! Would you mind explaining what the
        > difference is now? Can I maybe read up somewhere about generic Soap
        > handling? It seems my fault was just not following "best practice", so
        > I'd like to know what "best practice" would be ;)

        A request expects a soap structure which is done by SOAP::Data class.
        Check the SOAP::Lite docs.

        --
        Radek
      Your message has been successfully submitted and would be delivered to recipients shortly.