43 require_once
'XML/RPC2/Exception.php';
44 require_once
'XML/RPC2/Client.php';
45 require_once
'XML/RPC2/Util/HTTPRequest.php';
91 $tmp = xmlrpc_encode_request($this->prefix . $methodName, $parameters, array(
'encoding' => $this->encoding));
92 if ($this->uglyStructHack) {
95 $request = preg_replace(
'~<name>xml_rpc2_ugly_struct_hack_(.*)</name>~',
'<name>\1</name>', $tmp);
101 'encoding' => $this->encoding,
102 'proxy' => $this->proxy,
103 'sslverify' => $this->sslverify
106 $httpRequest->setPostData($request);
107 $httpRequest->sendRequest();
108 $body = $httpRequest->getBody();
112 $result = xmlrpc_decode($body, $this->encoding);
121 if (xmlrpc_is_fault($result)) {
123 print
"XML_RPC2_FaultException(${result['faultString']}, ${result['faultCode']})";