Re: note 90252 modified in soapclient.getlastrequest by thiago

From: Date: Mon, 13 Apr 2009 16:36:48 +0000
Subject: Re: note 90252 modified in soapclient.getlastrequest by thiago
References: 1 2  Groups: php.notes 
Request: Send a blank email to php-notes+get-153185@lists.php.net to get a copy of this message
That's what I'm talkin' about, man! ;-P Good job with the follow-up modification. On Mon, Apr 13, 2009 at 08:05, <thiago@php.net> wrote: > I guess many peoples calls getLastRequest and it returns nothing. "Heey where is the my > last request". Now we will see our request,  when you created a SoapClient instance, you > should give a option parameter as below : > > <?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(); > } > ?> > > "trace" parameter enables output of request. Now, you should see SOAP request. > > --was-- > I guess many peoples calls getLastRequest and it returns nothing. "Heey where is the my > last request". Now we will see our request,  when you created a SoapClient instance, you > should give a option parameter as below : > > <?php > > $option=array('trace',1); > > $client=new SoapClient('some.wsdl',$option); > > try{ >        $client->aMethodAtRemote(); >     }catch(SoapFault $fault){ >        echo 'Request : <br/>', >        $client->__getLastRequest(), >        '<br/><br/> Error Message : <br/>', >        $fault->getMessage(); >    } > ?> > > "trace" parameter enables output of request. Now, you should see SOAP request. > > http://php.net/manual/en/soapclient.getlastrequest.php > > -- > PHP Notes Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- </Daniel P. Brown> daniel.brown@parasane.net || danbrown@php.net http://www.parasane.net/ || http://www.pilotpig.net/ 50% Off All Shared Hosting Plans at PilotPig: Use Coupon DOW10000

« previous php.notes (#153185) next »