note 86958 deleted from function.soap-soapclient-getlastrequest by thiago
| From: | thiago@php.net | Date: | Wed, 12 Nov 2008 12:06:06 +0000 |
| Subject: | note 86958 deleted from function.soap-soapclient-getlastrequest by thiago | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-146418@lists.php.net to get a copy of this message | ||
Note Submitter: Omar Nabil
----
Hi everybody,
to have a lastRequest accessible using the getLastRequest function my request must be responsed by
the server?
I wanted to use this function (getLastRequest()) to get the request-xml without connecting to the
real soap server.
my code is like:
<?php
require_once('../lib/APClient.php');
$client = new APClient('http://192.168.1.83/PFM/lib/ZARS_WEB_LISTA_BP_MEDIA.wsdl',
array('trace' => 1));
try{
$result = $client->apFunction(new ApObject());
}catch(Exception $exception){}// I know ti can't connect to get the response
echo "REQUEST:\n" . $client->__getLastRequest() . "\n";
?>
APClient extends SoapClient
Thanks a lot