RE: [PHP-SOAP-DEV] Custom Faults
Status: Alpha
Brought to you by:
rodif_bl
From: phpsurf <ph...@if...> - 2002-05-05 01:05:26
|
well ... I've just restored my test scripts and added some new custom errors after installing the last release 0.1.1, and they don't work ! return new SoapFault("my error message !"); makes PHP crash ! :( (working on Windows 2000 + Apache 1.23 + PHP 4.2.0 + Php_Soap 0.1.1) > -----Original Message----- > From: php...@li... > [mailto:php...@li...]On Behalf > Of brad lafountain > Sent: jeudi 2 mai 2002 05:21 > To: phpsurf; php...@li... > Subject: RE: [PHP-SOAP-DEV] Custom Faults > > > > --- phpsurf <ph...@if...> wrote: > > well, it sounds good ... > > new SoapFault ("faultstring", ["faultcode", ]["faultactor", > ]["details"]) > > I am implementing this now... > > I think i will do.. > new SoapFault ("faultstring", ["faultcode", ]["details", ]["faultactor"]) > or > new SoapFault ("faultstring", ["details", ]["faultcode", ]["faultactor"]) > > What do you think... > > The reason for this is i think people will use details more than > they will use > actor.... > > > > > > but maybe, you could take advantage from waiting for the new exception > > system in ZendEngine2 ... > > > > then, we could have several exception classes, extending SoapFault ... > > > > class MySoapException extends SoapFault { > > var $faultcode = "MYAPP:MyCode"; > > ... > > } > > > > and then in you soap method: > > > > throw new MySoapException (); > > Yeah i want to do alot of stuff with zend two... > > throwing faults on server and catching faults on client... > > > > > > > > > > -----Original Message----- > > From: brad lafountain [mailto:rod...@ya...] > > Sent: mardi 30 avril 2002 20:00 > > To: phpsurf; php...@li... > > Subject: Re: [PHP-SOAP-DEV] Custom Faults > > > > > > > > --- phpsurf <ph...@if...> wrote: > > > Hi > > > > > > just a quick question : > > > is it possible to throw custom faults on the soap server side ? > > > > > > the native PHP errors handling is really great ... everything works > > without > > > having to handle anything ! > > > but what if I want to qualify the different types of errors and assign > > them > > > different FaultCodes ? > > > > Currently there is no way of doing this. I do have a SoapFault class. I > > wanted > > to intergrate that on the server side so you could do what you > are talking > > about. > > > > How would you suggest the fault code return look. > > > > function do_something() > > { > > if(some_status) > > return string; > > else > > return new SoapFault("code", "details"); > > } > > > > > > - brad > > > > > > thx > > > > > > > > > > > > > > __________________________________________________________________ > __________ > > __ > > > ifrance.com, l'email gratuit le plus complet de l'Internet ! > > > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > > > http://www.ifrance.com/_reloc/email.emailif > > > > > > > > > > > > _______________________________________________ > > > Phpsoaptoolkit-development mailing list > > > Php...@li... > > > https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Health - your guide to health and wellness > http://health.yahoo.com > > > ____________________________________________________________________________ __ > ifrance.com, l'email gratuit le plus complet de l'Internet ! > vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... > http://www.ifrance.com/_reloc/email.emailif > > __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com _______________________________________________________________ Have big pipes? SourceForge.net is looking for download mirrors. We supply the hardware. You get the recognition. Email Us: ban...@so... _______________________________________________ Phpsoaptoolkit-development mailing list Php...@li... https://lists.sourceforge.net/lists/listinfo/phpsoaptoolkit-development ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif |