X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=docs%2Fexamples%2FKISS_XMLRPC_Client.php;fp=docs%2Fexamples%2FKISS_XMLRPC_Client.php;h=0000000000000000000000000000000000000000;hb=391976a207cfc3effffa0bdbfa14829eb753e9aa;hp=ac7498d611caa9f87d6fd2af5a5de2eb7c89e497;hpb=a24c825ac83a673d31b8c57ec89e9f5667e4668d;p=m6w6%2Fext-http diff --git a/docs/examples/KISS_XMLRPC_Client.php b/docs/examples/KISS_XMLRPC_Client.php deleted file mode 100644 index ac7498d..0000000 --- a/docs/examples/KISS_XMLRPC_Client.php +++ /dev/null @@ -1,43 +0,0 @@ -namespace = $namespace; - $this->request = new HttpRequest($url, HTTP_METH_POST); - $this->request->setContentType('text/xml'); - } - - public function setOptions($options = array()) - { - return $this->request->setOptions($options); - } - - public function addOptions($options) - { - return $this->request->addOptions($options); - } - - public function __call($method, $params) - { - if ($this->namespace) { - $method = $this->namespace .'.'. $method; - } - $this->request->setRawPostData(xmlrpc_encode_request($method, $params)); - $response = $this->request->send(); - if ($response->getResponseCode() != 200) { - throw new Exception($response->getBody(), $response->getResponseCode()); - } - return xmlrpc_decode($response->getBody(), 'utf-8'); - } - - public function getHistory() - { - return $this->request->getHistory(); - } -} - -?>