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

5001Returning nice error for invalid method call

Expand Messages
  • burke_thomas
    Nov 10, 2005
    • 0 Attachment

      I've got a SOAP::Lite server running under Apache that only has one
      method. If the wrong method is called, the following fault is

      <faultstring>Denied access to method (Request) in class (main) at
      /usr/lib/perl5/site_perl/5.8.6/SOAP/Lite.pm line 2416.

      Soap::Lite is generating this error, not my code.

      I'd like to return a custom error message instead of this, like
      <faultstring>Invalid method</faultstring>

      How would I do that?

      In addition, the faults I do generate always have a tag "soap:" in
      front of the fault code. E.g.


      Why is it "soap:610" instead of just 610, and can I get rid of
      the "soap:"?