note 90259 deleted from soapclient.getlastrequest by thiago

From: Date: Mon, 13 Apr 2009 12:05:49 +0000
Subject: note 90259 deleted from soapclient.getlastrequest by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-153140@lists.php.net to get a copy of this message
Note Submitter: Ersin DOGAN ---- I made a syntax mistake before note, I do apologize for this. Correct one is below, also I add a code to display SOAP request xml. <?php // below $option=array('trace',1); // correct one is below $option=array('trace'=>1); $client=new SoapClient('some.wsdl',$option); try{ $client->aMethodAtRemote(); }catch(SoapFault $fault){ // <xmp> tag displays xml output in html echo 'Request : <br/><xmp>', $client->__getLastRequest(), '</xmp><br/><br/> Error Message : <br/>', $fault->getMessage(); } ?>

« previous php.notes (#153140) next »