I have a code to post data on word press i.e.-
String username = "xyz";
String password = "xyz";
String xmlRpcUrl = "http://www.arrestcentral.com/xmlrpc.php?";
Wordpress wp = new Wordpress(username, password, xmlRpcUrl);
Page recentPost = new Page();
String result = wp.newPost(recentPost, true);`
These same code was working 2 month but now its not working. Now when I goes to post data is showing an exception i.e.-
redstone.xmlrpc.XmlRpcException: The response could not be parsed.
at redstone.xmlrpc.XmlRpcClient.handleResponse(Unknown Source)
at redstone.xmlrpc.XmlRpcClient.endCall(Unknown Source)
at redstone.xmlrpc.XmlRpcClient.invoke(Unknown Source)
at redstone.xmlrpc.XmlRpcProxy.invoke(Unknown Source)
at net.bican.wordpress.$Proxy1.newMediaObject(Unknown Source)
at net.bican.wordpress.Wordpress.newMediaObject(Wordpress.java:582)
at WordpressPost.DataWordpressPost.DataPost(DataWordpressPost.java:53)
at arrestcentral.ArrestData.readPdf(ArrestData.java:420)
at arrestcentral.ArrestData.main(ArrestData.java:447)
Caused by: java.io.FileNotFoundException: http://www.arrestcentral.com/XMLrpc.php?
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1478)
... 9 more'
I am using
xmlrpc-client-1.1
WordPress 3.2.1