{"id":6111322,"date":"2015-05-09T13:53:05","date_gmt":"2015-05-09T13:53:05","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/error-570\/"},"modified":"2016-08-24T15:43:56","modified_gmt":"2016-08-24T15:43:56","slug":"error-570","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/error-570\/","title":{"rendered":"Error"},"content":{"rendered":"<p>I try to use the plugin with a remote Java library and get an error: Code: -32700 redstone.xmlrpc.XmlRpcFault: parse error. not well formed. I modifiyed the send methode like this: <\/p>\n<p>\tStringBuffer buffer = ((StringWriter) writer).getBuffer();<\/p>\n<p>\tString data = buffer.toString();<br \/>\n\tString privateHash = StringUtils.sha256(privateKey + StringUtils.sha256(privateKey + data));<\/p>\n<p>\tString dataSHA = publicKey + &#8220;||&#8221; + privateHash;<br \/>\n\tbyte[] dataArray = dataSHA.getBytes(XmlRpcMessages.getString(&#8220;XmlRpcClient.Encoding&#8221;));<\/p>\n<p>\topenConnection();<br \/>\n\tconnection.setRequestProperty(&#8220;Content-Length&#8221;, String.valueOf(dataArray.length));<\/p>\n<p>\tOutputStream output = new BufferedOutputStream(connection.getOutputStream());<br \/>\noutput.write(dataArray);<br \/>\n\toutput.flush();<br \/>\n\toutput.close();<\/p>\n<p>https:\/\/wordpress.org\/plugins\/secure-xml-rpc\/<\/p>\n","protected":false},"template":"","class_list":["post-6111322","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6111322","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/6111322\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=6111322"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}