Support » Plugin: Secure XML-RPC » Error

  • Resolved tobisan

    (@tobisan)


    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:

    StringBuffer buffer = ((StringWriter) writer).getBuffer();

    String data = buffer.toString();
    String privateHash = StringUtils.sha256(privateKey + StringUtils.sha256(privateKey + data));

    String dataSHA = publicKey + “||” + privateHash;
    byte[] dataArray = dataSHA.getBytes(XmlRpcMessages.getString(“XmlRpcClient.Encoding”));

    openConnection();
    connection.setRequestProperty(“Content-Length”, String.valueOf(dataArray.length));

    OutputStream output = new BufferedOutputStream(connection.getOutputStream());
    output.write(dataArray);
    output.flush();
    output.close();

    https://wordpress.org/plugins/secure-xml-rpc/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Error’ is closed to new replies.