Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/zend/Zend/Soap/Client/Local.php
Go to the documentation of this file.
00001 <?php
00024 require_once 'Zend/Soap/Server.php';
00025 
00027 require_once 'Zend/Soap/Client.php';
00028 
00029 if (extension_loaded('soap')) {
00030 
00043 class Zend_Soap_Client_Local extends Zend_Soap_Client
00044 {
00050     protected $_server;
00051 
00059     function __construct(Zend_Soap_Server $server, $wsdl, $options = null)
00060     {
00061         $this->_server = $server;
00062 
00063         // Use Server specified SOAP version as default
00064         $this->setSoapVersion($server->getSoapVersion());
00065 
00066         parent::__construct($wsdl, $options);
00067     }
00068 
00081     public function _doRequest(Zend_Soap_Client_Common $client, $request, $location, $action, $version, $one_way = null)
00082     {
00083         // Perform request as is
00084         ob_start();
00085         $this->_server->handle($request);
00086         $response = ob_get_contents();
00087         ob_end_clean();
00088 
00089         return $response;
00090     }
00091 }
00092 
00093 } // end if (extension_loaded('soap')
 All Data Structures Namespaces Files Functions Variables Enumerations