Re: [SOAP] user query: SOAP Error handling
| From: | Shane Caraveo | Date: | Mon, 27 May 2002 17:49:28 +0000 |
| Subject: | Re: [SOAP] user query: SOAP Error handling | ||
| References: | 1 2 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-18@lists.php.net to get a copy of this message | ||
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