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

Re: [soaplite] SOAP::Fault

Expand Messages
  • Duncan Cameron
    ... die() with a SOAP::Fault object, and pass your object as the faultdetail. see http://cookbook.soaplite.com/#soap faults Regards Duncan
    Message 1 of 1 , Aug 18 2:00 PM
    • 0 Attachment
      At 15:55:00 on 2003-08-18 joycecho1121 <joycecho1121@...> wrote:

      >I'm returning a simple string when an error occurs in my server, but
      >I want to return an object with Error message and parameters
      >indicating which parameters are passed and so forth. Is this
      >possible? Does anyone have any idea?
      >
      >
      >sub find {
      >
      > my $me = shift;
      >
      > my ($owner) = Joyce-> search (me => $me);
      >
      > if (!$owner)
      > {
      > die "$me does not exist";
      >
      > }
      >
      >}

      die() with a SOAP::Fault object, and pass your object as the faultdetail.

      see http://cookbook.soaplite.com/#soap faults

      Regards
      Duncan
    Your message has been successfully submitted and would be delivered to recipients shortly.