Ejemplo n.º 1
0
 function Request($command, $data = array())
 {
     $Resp = parent::Request($command, $data);
     if ($Resp->Code != 1000) {
         $reason = "{$this->LastResponse->response->result->value->reason}";
         if ($reason) {
             $Resp->ErrMsg .= ". {$reason}";
         }
     }
     return $Resp;
 }
Ejemplo n.º 2
0
 public function Request($command, $data = array())
 {
     $Trn = parent::Request($command, $data);
     if ($Trn->Data->response->result->value) {
         foreach ($Trn->Data->response->result->value as $XmlValue) {
             $text = (string) $XmlValue->text;
             if (!(strpos($text, 'SRS') === 0 || strpos($text, '--') === 0)) {
                 $Trn->ErrMsg .= ". {$text}";
             }
         }
     }
     return $Trn;
 }
Ejemplo n.º 3
0
 public function Request($command, $data = array())
 {
     $resp = parent::Request($command, $data);
     if (!$resp->Succeed) {
         // Parse errmsg
         $ext = $resp->Data->response->extension;
         if ($ext && $ext->getName() != "") {
             $conditions = $ext->children("http://www.norid.no/xsd/no-ext-result-1.0");
             $conditions = $conditions[0];
             $resp->ErrMsg .= ". {$conditions->condition[0]->msg}";
             $resp->ErrMsg .= ". {$conditions->condition[0]->details}";
         }
     }
     return $resp;
 }
Ejemplo n.º 4
0
 public function Request($command, $data = array())
 {
     $Response = parent::Request($command, $data);
     if (!$Response->Succeed) {
         $ext = $Response->Data->response->extension->children($this->ExtNamespace);
         if ($ext[0]) {
             $extMsg = (string) $ext[0]->result->msg;
             if ($Response->ErrMsg) {
                 $Response->ErrMsg .= ". {$extMsg}";
             } else {
                 $Response->ErrMsg = $extMsg;
             }
         }
     }
     return $Response;
 }