class BroadsoftXMLResponse !!!132361.php!!! __construct(inout response : string, inout headers : string) $this->dom_response = new DOMDocument(); $this->dom_response->loadXML($response); $asd = $this->dom_response->getElementsByTagName("processOCIMessageReturn"); $this->xml_response = new DOMDocument(); $this->xml_response->loadXML(str_replace("xmlns=\"C\"", "xmlns=\"\"", $asd->item(0)->nodeValue)); $headers = explode("\r\n", $headers); foreach($headers as $xd1 => $xd2) { if ($xd2 == "") { unset($headers[$xd1]); } else { $axd2 = explode(":", $xd2); $axd2[1] = (!isset($axd2[1])) ? "" : $axd2[1]; list($a, $b) = $axd2; $headers[trim($a)] = trim($b); unset($headers[$xd1]); if (count(explode(";", $headers[trim($a)])) > 1) { $headers[trim($a)][1] = (!isset($headers[trim($a)][1])) ? "" : $headers[trim($a)][1]; $headers[trim($a)] = explode(";", $headers[trim($a)]); foreach($headers[trim($a)] as $l => $v) { if ($v == "") { unset($headers[trim($a)][$l]); } else { $aasd = explode("=", $headers[trim($a)][$l]); $aasd[1] = (!isset($aasd[1])) ? "" : $aasd[1]; list($c, $d) = $aasd; unset($headers[trim($a)][$l]); $headers[trim($a)][trim($c)] = $d; } } } } } $this->headers_response = $headers; !!!132489.php!!! getHeadersRespose() : string return ($this->headers_response); !!!132617.php!!! getResponseXML() : string return ($this->dom_response->saveXML()); !!!132745.php!!! getContenidoXML() : string return ($this->xml_response->saveXML());