2010年11月2日星期二

[fw-webservices] Soap Server does not uses getLastRequest

Hi,
http://framework.zend.com/manual/1.11/en/zend.soap.server.html

The above link shows an example of logging requests on the SOAP server using
the getLastRequest. I am aware of using it with the client but is there a
way to log those request with the server?

$this->getHelper('viewRenderer')->setNoRender(true);

// initialize server and set WSDL file location
$server = new Zend_Soap_Server('wsdl location');

// initialize server and set URI
//$server = new Zend_Soap_Server(null,
// array('uri' => 'http://webservices.tjh2b.com/Labrequest/soap'));

// set SOAP service class
$server->setClass('Webservices_Manager');

$server->setRequest();


// register exceptions that generate SOAP faults
$server->registerFaultException(array('Webservices_Exception'));

// handle request
$server->handle();

echo $request = $server->getLastRequest();

Thank you.


--
View this message in context: http://zend-framework-community.634137.n4.nabble.com/Soap-Server-does-not-uses-getLastRequest-tp3024416p3024416.html
Sent from the Zend Web Services mailing list archive at Nabble.com.

没有评论: