Fwd: [PEAR] Query with pear SOAP and SOAP_Fault
| From: | Chris Covell | Date: | Mon, 19 Jul 2004 16:50:17 +0000 |
| Subject: | Fwd: [PEAR] Query with pear SOAP and SOAP_Fault | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13753@lists.php.net to get a copy of this message | ||
Justin,
>> $fault = new SOAP_Fault('Does not exist', '99');
>> return $fault->message();
>You may as well not be creating that SOAP_Fault. All you're doing is
>extracting your message as a string and returning that.
>You should be doing:
>return new SOAP_Fault('Does not exist', '99');
many thanks for that, of course you are right, I am too new at this !!!
Top stuff, I am now returning propper soap faults and am able to
interogate them with PEAR::isError.
Many thanks.
Chris...