Esempio n. 1
0
 protected function xmlresponse()
 {
     parent::xpath($this->response, $this->method);
     $xPathResult = $this->xpath->search("//Transaction/IP");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     $xPathResult = $this->xpath->search("//Transaction/Code");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     $xPathResult = $this->xpath->search("//Transaction/Description");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     $xPathResult = $this->xpath->search("//Status");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     if (isset($this->result['Code'])) {
         if ($this->result['Code'] >= 2) {
             $this->fault = true;
         }
     }
     print_r($this->result);
 }
Esempio n. 2
0
 protected function xmlresponse()
 {
     parent::xpath($this->response, $this->method);
     $xPathResult = $this->xpath->search("//Transaction/Code");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     $xPathResult = $this->xpath->search("//Transaction/Description");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     $xPathResult = $this->xpath->search("//SMSInbounds/InboundSMS");
     if (!empty($xPathResult)) {
         for ($i = 0; $i < $xPathResult->length; $i++) {
             $id = $this->xpath->search("//ID", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$id]['Originator'] = $this->xpath->search("//Originator", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$id]['Destination'] = $this->xpath->search("//Destination", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$id]['Keyword'] = $this->xpath->search("//Keyword", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$id]['Date'] = $this->xpath->search("//Date", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$id]['Time'] = $this->xpath->search("//Time", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$id]['Body'] = $this->xpath->search("//Body", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$id]['Network'] = $this->xpath->search("//Network", $xPathResult->item($i))->item($i)->nodeValue;
         }
         //for
     }
     //if
     print_r($this->result);
     if (isset($this->result['Code'])) {
         if ($this->result['Code'] >= 2) {
             $this->fault = true;
         }
     }
 }
Esempio n. 3
0
 protected function xmlresponse()
 {
     parent::xpath($this->response, $this->method);
     $xPathResult = $this->xpath->search("//Transaction/Code");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     $xPathResult = $this->xpath->search("//Transaction/Description");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     $xPathResult = $this->xpath->search("//Status");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     $xPathResult = $this->xpath->search("//Subscribers/Subscriber");
     if (!empty($xPathResult)) {
         for ($i = 0; $i < $xPathResult->length; $i++) {
             $originator = $this->xpath->search("//Originator", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$originator]['Destination'] = $this->xpath->search("//Destination", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$originator]['Keyword'] = $this->xpath->search("//Keyword", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$originator]['Date'] = $this->xpath->search("//Date", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$originator]['Time'] = $this->xpath->search("//Time", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$originator]['Body'] = $this->xpath->search("//Body", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$originator]['Network'] = $this->xpath->search("//Network", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$originator]['RBID'] = $this->xpath->search("//RBID", $xPathResult->item($i))->item($i)->nodeValue;
         }
         //for
     }
     //if
     if ($this->result['Code'] >= 2) {
         $this->fault = true;
     }
     print_r($this->result);
 }
Esempio n. 4
0
 protected function xmlresponse()
 {
     parent::xpath($this->response, $this->method);
     $xPathResult = $this->xpath->search("//Transaction/IP");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     $xPathResult = $this->xpath->search("//Transaction/Code");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     $xPathResult = $this->xpath->search("//Transaction/Description");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     $xPathResult = $this->xpath->search("//Statuses/Status");
     if (!empty($xPathResult)) {
         for ($i = 0; $i < $xPathResult->length; $i++) {
             $destination = $this->xpath->search("//Destination", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$destination]['CurrentPart'] = $this->xpath->search("//CurrentPart", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$destination]['TotalPart'] = $this->xpath->search("//TotalPart", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$destination]['StatusCode'] = $this->xpath->search("//StatusCode", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$destination]['StatusName'] = $this->xpath->search("//StatusName", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$destination]['StatusDescription'] = $this->xpath->search("//StatusDescription", $xPathResult->item($i))->item($i)->nodeValue;
         }
         //for
     }
     //if
     if (isset($this->result['Code'])) {
         if ($this->result['Code'] >= 2) {
             $this->fault = true;
         }
     }
 }
Esempio n. 5
0
 protected function xmlresponse()
 {
     parent::xpath($this->response, $this->method);
     $xPathResult = $this->xpath->search("//Transaction/Code");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     $xPathResult = $this->xpath->search("//Transaction/Description");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     $xPathResult = $this->xpath->search("//Replies/Reply");
     if (!empty($xPathResult)) {
         for ($i = 0; $i < $xPathResult->length; $i++) {
             $id = $this->xpath->search("//ID", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$id]['ClientMessageReference'] = $this->xpath->search("//ClientMessageReference", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$id]['PartTotal'] = $this->xpath->search("//PartTotal", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$id]['Originator'] = $this->xpath->search("//Originator", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$id]['Destination'] = $this->xpath->search("//Destination", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$id]['Date'] = $this->xpath->search("//Date", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$id]['Time'] = $this->xpath->search("//Time", $xPathResult->item($i))->item($i)->nodeValue;
             $this->result[$id]['Body'] = $this->xpath->search("//Body", $xPathResult->item($i))->item($i)->nodeValue;
         }
         //for
     }
     //if
     print_r($this->result);
     if (isset($this->result['Code'])) {
         if ($this->result['Code'] >= 2) {
             $this->fault = true;
         }
     }
 }
Esempio n. 6
0
 protected function xmlresponse()
 {
     parent::xpath($this->response, $this->method);
     $xPathResult = $this->xpath->search("//Transaction/IP");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     $xPathResult = $this->xpath->search("//Transaction/Code");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     $xPathResult = $this->xpath->search("//Transaction/Description");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     $xPathResult = $this->xpath->search("//Status");
     if (!empty($xPathResult)) {
         $this->result[$xPathResult->item(0)->nodeName] = $xPathResult->item(0)->nodeValue;
     }
     $this->validateResponse();
     parent::error();
 }