xml-rpc java

  • Unknown's avatar

    I have this site called http://nirvikalpa.wordpress.com

    I am trying to use the redstone java aPI and even tried the java wordpress client available.

    I get the following error each time I try to access any method:

    Exception in thread “main” redstone.xmlrpc.XmlRpcFault: server error. requested method getCategories does not exist.
    at redstone.xmlrpc.XmlRpcClient.handleResponse(XmlRpcClient.java:429)
    at redstone.xmlrpc.XmlRpcClient.endCall(XmlRpcClient.java:372)
    at redstone.xmlrpc.XmlRpcClient.invoke(XmlRpcClient.java:177)
    at org.earth.Connect.main(Connect.java:35)

    Whatever method I try in the given API list on wp – I get the above error.
    Here is the code that I am trying to use:

    XmlRpcClient client = new XmlRpcClient(“http://nirvikalpa.wordpress.com/xmlrpc.php”,false);
    List arl = new ArrayList();
    arl.add(new Integer(6920866));
    arl.add(username);
    arl.add(password);
    Object o = client.invoke(“getCategories”,arl);

    Can anyone please guide me as to what step I am missing.

    Thanks.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    WordPress won’t allow you to use Java on a .COM site.

    Code

    “Users are not allowed to post JavaScript on WordPress.com blogs. Javascript can be used for malicious purposes. Your code and intentions may be perfectly harmless, but it does not mean all javascript will be okay. The security of all the blogs is a top priority and until we can guarantee scripting languages will not be harmful they will not be permitted.”

  • Unknown's avatar

    If you aren’t trying to pass javascript to a post in a wordpress blog, but it is just javascript in the client, you need to contact support directly, or search the codex over at http://codex.wordpress.org/Main_Page .

    Contact

  • Unknown's avatar

    Well firstly I am not posting any thing but calling a get method –

    Calling any get method is resulting in error:

    server error. requested method getXXX does not exist.

    Could anyone assist me in understanding why am I getting the erroneous response even though the wordpress API list [ http://codex.wordpress.org/XML-RPC_wp ] states that it is supported.

    Thanks for the support.

  • Unknown's avatar

    Volunteers here in this forum know nothing about xml-rpc here at the wordpress.COM free hosting service. We don’t deal with any of the underlying wordpress files or anything else. We just blog.

    Head over to http://wordpress.ORG/support/ or as I said, contact staff directly.

  • Unknown's avatar

    Thanks ,

    I got the answer – I need to call wp.getXXX method instead of getXX

  • Unknown's avatar

    Glad you got the answer and you are welcome.

  • The topic ‘xml-rpc java’ is closed to new replies.