Esempio n. 1
0
 /**
  * Custom handle method to be able to modify the SOAP messages.
  *
  * @param string $request Request string
  */
 public function handle($request = null)
 {
     // wrap request data in SoapRequest object
     $soapRequest = SoapRequest::create($request, $this->soapVersion);
     // handle actual SOAP request
     $soapResponse = $this->handle2($soapRequest);
     // send SOAP response to client
     $soapResponse->send();
 }
Esempio n. 2
0
 /**
  * Custom handle method to be able to modify the SOAP messages.
  *
  * @param string $request Request string
  */
 public function handle($request = null)
 {
     // wrap request data in SoapRequest object
     $soapRequest = SoapRequest::create($request, $this->soapVersion);
     // handle actual SOAP request
     try {
         $soapResponse = $this->handle2($soapRequest);
     } catch (\SoapFault $fault) {
         // issue an error to the client
         $this->fault($fault->faultcode, $fault->faultstring);
     }
     // send SOAP response to client
     $soapResponse->send();
 }