Fwd: [PEAR] Query with pear SOAP and SOAP_Fault
| From: | Chris Covell | Date: | Tue, 20 Jul 2004 11:00:16 +0000 |
| Subject: | Fwd: [PEAR] Query with pear SOAP and SOAP_Fault | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13765@lists.php.net to get a copy of this message | ||
Justin (or any one else !!!),
is there any way I can specify the SOAP fault return in my wsdl ?
I am using the despatch_map method at the moment.
Chris...
---------- Forwarded message ----------
From: Chris Covell <chris.covell@gmail.com>
Date: Mon, 19 Jul 2004 17:50:17 +0100
Subject: Fwd: [PEAR] Query with pear SOAP and SOAP_Fault
To: pear-general@lists.php.net
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...