Exemplo n.º 1
0
 function sendSoap($client)
 {
     try {
         $soapArray = $this->responseArray();
         $retryNo = Application_Model_General::checkIfRetry($this->request->getHeaderField('REQUEST_ID'), $this->request->getHeaderField('MSG_TYPE'));
         if (!empty($retryNo)) {
             $soapArray['NP_MESSAGE']['HEADER']['RETRY_NO'] = $retryNo;
         }
         $ret = $client->sendMessage($soapArray);
         // log all sending calls
         if (Application_Model_General::getSettings('EnableRequestLog')) {
             Application_Model_General::logRequestResponse($soapArray, $ret, $this->request->getHeaderField("REQUEST_ID"), '[Output] ');
         }
     } catch (SoapFault $e) {
         $ret = FALSE;
     }
     return $ret;
 }