Exemplo n.º 1
0
 /**
  * function SOAP Handle. points to Np_Soap_Handler 
  * the class for the used for the soap method called .
  * 
  * @return bool $result The Result of the SOAP Handle Function
  * 
  */
 private function handleSOAP()
 {
     $soap = new Zend_Soap_Server(Application_Model_General::getWsdl(), array('soap_version' => SOAP_1_1));
     $soap->setClass('Np_Soap_Handler');
     $soap->handle();
     $response = $soap->getLastResponse();
     return $response;
     // - change to result from handle
 }
Exemplo n.º 2
0
 function getSoapClient($url)
 {
     $client = new Zend_Soap_Client(Application_Model_General::getWsdl(), array('uri' => $url, 'location' => $url, 'soap_version' => SOAP_1_1, 'encoding' => 'UTF-8', 'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_DEFLATE));
     return $client;
 }