Fwd: [PEAR] Query with pear SOAP and SOAP_Fault
| From: | Chris Covell | Date: | Wed, 21 Jul 2004 12:42:09 +0000 |
| Subject: | Fwd: [PEAR] Query with pear SOAP and SOAP_Fault | ||
| References: | 1 2 3 4 5 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-13789@lists.php.net to get a copy of this message | ||
Thanks for this Justin, yes I think I shall submit a feature request.
Chris...
---------- Forwarded message ----------
From: Justin Patrin <papercrane@gmail.com>
Date: Tue, 20 Jul 2004 09:29:21 -0700
Subject: Re: [PEAR] Query with pear SOAP and SOAP_Fault
To: Chris Covell <chris.covell@gmail.com>
Cc: pear-general@lists.php.net
On Tue, 20 Jul 2004 12:00:16 +0100, Chris Covell <chris.covell@gmail.com> wrote:
> 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...
>
It looks like you're supposed to have a wsdl:fault element according
to this website:
http://www.w3.org/2001/03/19-annotated-RDF-WSDL-examples
It also looks like WSDL.php doesn't support faults in the dispatch
map, although it looks like it should. Of course, I'm not a WSDL or
SOAP guru, so I can't say for sure. ;-) I'd say to either try to hack
it into your version and submit a patch, or submit a feature request.
>
>
> ---------- 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...
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
> !DSPAM:40fcf97d256126449014439!
>
>
--
DB_DataObject_FormBuilder - The database at your fingertips
http://pear.php.net/package/DB_DataObject_FormBuilder
paperCrane --Justin Patrin--