Re: Query with pear SOAP and SOAP_Fault

From: Date: Tue, 20 Jul 2004 16:29:21 +0000
Subject: Re: Query with pear SOAP and SOAP_Fault
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-13773@lists.php.net to get a copy of this message
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--

« previous php.pear.general (#13773) next »