XML-RPC method not found

Hi
I have this:


include("xmlrpc.inc");
$server_path="/plugins/kraken/xml-rpc";
$server_hostname="mysite.com";
//print($server_path);

$methodName= "Manager.addRegistration";


$xmlrpc_client = new xmlrpc_client('/plugins/kraken/xml-rpc','mysite.com',9090);

$xmlrpc_client->setDebug(1);

$xmlrpc_msg = new xmlrpcmsg('Manager.addRegistration', array(new xmlrpcval('secretkey', 'string'), new xmlrpcval('currentuser', 'string'), new xmlrpcval('msn', 'string'), new xmlrpcval('anyaccount@hotmail.com', 'string'), new xmlrpcval('anypassword', 'int'), new xmlrpcval('mynick', 'string')));


$xmlrpc_resp = $xmlrpc_client->send($xmlrpc_msg);

But I get The method cannot be found this error:


---GOT---
HTTP/1.1 200 OK
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Set-Cookie: JSESSIONID=1c4q6fsmx3clu;Path=/
Content-Length: 438

<?xml version="1.0" encoding="ISO-8859-1"?><methodResponse><fault><value><struct><member><name>faultCode</name><value><int>-1</int></value></member><member><name>faultString</name><value><string>redstone.xmlrpc.XmlRpcException: The method cannot be found. Signature: java.lang.String java.lang.String java.lang.String java.lang.String java.lang.Integer java.lang.String </string></value></member></struct></value></fault></methodResponse>
---END---

HEADER: expires: Thu, 01 Jan 1970 00:00:00 GMT
HEADER: set-cookie: JSESSIONID=1c4q6fsmx3clu;Path=/
HEADER: content-length: 438
COOKIE: JSESSIONID=1c4q6fsmx3clu

---PARSED---
xmlrpcval::__set_state(array(
   'me' => 
  array (
    'struct' => 
    array (
      'faultCode' => 
      xmlrpcval::__set_state(array(
         'me' => 
        array (
          'int' => -1,
        ),
         'mytype' => 1,
         '_php_class' => NULL,
      )),
      'faultString' => 
      xmlrpcval::__set_state(array(
         'me' => 
        array (
          'string' => 'redstone.xmlrpc.XmlRpcException: The method cannot be found. Signature: java.lang.String java.lang.String java.lang.String java.lang.String java.lang.Integer java.lang.String ',
        ),
         'mytype' => 1,
         '_php_class' => NULL,
      )),
    ),
  ),
   'mytype' => 3,
   '_php_class' => NULL,
))
---END---


I need help please.

You may double check the signature of the method ‘addRegistration’. Java really does care the types and order of arguments of methods.