You receive an error message (specification for interacting with an error code, version 20010516) from the XMLRPC endpoint with which you are communicating.
This is a specific error code:
-32601 ---> server error. requested method not found
The RPC method you requested was not found by the server. Contact the support service that you consume for a list of all available methods. If this method should be available, contact support and discuss the problem with them.
You asked in a comment:
Is there a way to [check] which methods are available?
It depends on the service. In XMLRPC on sourceforge, there is a suggestion of certain methods that you can call to display information about available functions:
Introspection XML-RPC
system.listMethodssystem.methodSignaturesystem.methodHelp
You can also try if it works with your service. AFAIK is a common thing, I gave a quick example, you will find the full code below. See also output under code.
$path = 'http://xmlrpc-c.sourceforge.net/api/sample.php'; printf("\n XMLRPC Service Discovery\n\n for: '%s'\n\n", $path); $discovery = new Discovery($path); $methods = $discovery->getMethods(); printf(" Method Summary:\n ===============\n", count($methods)); foreach ($methods as $i => $method) { printf(" %'.-2d %s\n", $i + 1, $method->getName()); } printf("\n Method Details (%d):\n ===================\n", count($methods)); foreach ($methods as $i => $method) { printf(" %'.-2d %s\n", $i + 1, $method->getName()); printf("\n %s\n", $method); printf("\n%s\n\n", preg_replace('/^/um', ' ', wordwrap($method->getHelp(), 46))); }
Output:
XMLRPC Service Discovery for: 'http://xmlrpc-c.sourceforge.net/api/sample.php' Method Summary: =============== 1. debug.authInfo 2. sample.add 3. sample.sumAndDifference 4. system.listMethods 5. system.methodHelp 6. system.methodSignature Method Details (6): =================== 1. debug.authInfo <struct> debug.authInfo Report any HTTP authentication in use 2. sample.add <int> sample.add (<int>, <int>) Add two numbers 3. sample.sumAndDifference <struct> sample.sumAndDifference (<int>, <int>) Add and subtract two numbers 4. system.listMethods <array> system.listMethods (<string>) This method lists all the methods that the XML-RPC server knows how to dispatch 5. system.methodHelp <string> system.methodHelp (<string>) Returns help text if defined for the method passed, otherwise returns an empty string 6. system.methodSignature <array> system.methodSignature (<string>) Returns an array of known signatures (an array of arrays) for the method name passed. If no signatures are known, returns a none-array (test for type != array to detect missing signature)
Here you can find the source code: XMLRPC Discovery Service