function __construct($method, $args)
<methodName>{$this->method}</methodName>
foreach ($this->args as $arg) {
$this->xml .= '<param><value>';
$v = new IXR_Value($arg);
$this->xml .= $v->getXml();
$this->xml .= "</value></param>\n";
$this->xml .= '</params></methodCall>';
public function IXR_Request( $method, $args ) {
self::__construct( $method, $args );
return strlen($this->xml);