note 112365 added to soapserver.fault

From: Date: Thu, 06 Jun 2013 22:41:23 +0000
Subject: note 112365 added to soapserver.fault
Groups: php.notes 
Request: Send a blank email to php-notes+get-195094@lists.php.net to get a copy of this message
hi, to control the fault output one may do the following /** * mySoapServer class */ class mySoapServer extends SoapServer { public function __construct($wsdl, array $options = null) { parent::SoapServer($wsdl, $options); } public function fault ($code, $string, $actor = null, $details = null, $name = null) { throw new SoapFault($code, $string, $actor, $details, $name); } } Use: try { $server = new mySoapServer(null, array('uri' => $_SERVER['REQUEST_URI'])); $server->setClass('mySoapAPI'); $server->handle(); } catch (SoapFault $exc) { echo $exc->getTraceAsString(); } that how i did this, hope iot can help some one. ---- Server IP: 69.147.83.199 Probable Submitter: 78.156.121.7 ---- Manual Page -- http://php.net/manual/en/soapserver.fault.php Edit -- https://master.php.net/note/edit/112365 Del: integrated -- https://master.php.net/note/delete/112365/integrated Del: useless -- https://master.php.net/note/delete/112365/useless Del: bad code -- https://master.php.net/note/delete/112365/bad+code Del: spam -- https://master.php.net/note/delete/112365/spam Del: non-english -- https://master.php.net/note/delete/112365/non-english Del: in docs -- https://master.php.net/note/delete/112365/in+docs Del: other reasons-- https://master.php.net/note/delete/112365 Reject -- https://master.php.net/note/reject/112365 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#195094) next »