Java XMLRPC request-String

Posted by Philip on Stack Overflow See other posts from Stack Overflow or by Philip
Published on 2010-03-29T16:19:58Z Indexed on 2010/03/29 16:23 UTC
Read the original article Hit count: 359

Filed under:
|
|
|

Hi,

I'm using Apache XML-RPC 3.1.2 to talk to an online-service. They have something special, they need a hash over the whole XML with a secret key for some kind of security, like this: String hash = md5(xmlRequest + secretKey); String requestURL = "http://foo.bar/?authHash=" + hash;

So I need the XML-request like this:

<?xml version="1.0"?>
<methodCall>
<methodName>foo.bar</methodName>
<params>
<param>
<value><struct>
<member><name>bla</name>
<value><int>1</int></value>
</member>
<member><name>blubb</name>
<value><int>2</int></value>
</member>
</struct></value>
</param>
</params>
</methodCall>

But how do I get this String-representation of the XMLRPC-Request with the lib Apache XML-RPC?

© Stack Overflow or respective owner

Related posts about java

Related posts about apache