Re: [SOAP] user query: SOAP Error handling
| From: | John Lim | Date: | Tue, 28 May 2002 06:13:21 +0000 |
| Subject: | Re: [SOAP] user query: SOAP Error handling | ||
| References: | 1 2 3 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-23@lists.php.net to get a copy of this message | ||
Hello Shane,
Thanks for the tip. Much appreciated.
john
"Shane Caraveo" <shane@caraveo.com> wrote in message
news:3CF271A8.1090101@caraveo.com...
> Well, you can do it any way you want, but general practice I have seen
> so far, soap faults are returned on an error.
> Shane
>
> John Lim wrote:
> > Hello,
> > Is this group a development group, or are end-user questions also
welcome
> > here?
> >
> > I need to find out what is the preferred way of doing error handling if
the
> > function i am calling generates an error. Should i be generating a soap
> > fault, or roll my own error handling. Currently i am returning an array
like
> > this from my server function:
> >
> > return array($returnvalue, $error);
> >
> > and checking the $error element of the array in my soap client.
> >
> > Thanks again, John
> >
> >
> >
>
>
>