Upgrade to apache xmlrpc-server-3.1.3

I used xmlrpc-2.0.1 in my project.
Now, we are upgrading to version 3.1.3.
In version 2.0.1, we passed as parameter a ServletInputStream:

public void processRequest(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException {

byte[] result = xmlRpcServer.execute(request.getInputStream());
response.setContentType("text/xml");
response.setContentLength(result.length);
OutputStream out = response.getOutputStream();
out.write(result);
out.close();
}

Now I need to update this code.
The parameter must be XmlRpcRequest and I'm not able to find how to
convert to inputStream and nor find another method that returns byte
[].
Could someone help me?
How should I proceed?

Tks

0 comments

Comment

Log in or Join to comment
Community showcase
Ignacio Pulgar
Posted yesterday in Off-topic

Friday Fun: What's your favorite quote?

Hi all! You've probably heard a lot of famous quotes: smart, hilarious, inspiring ones... Maybe some of them kind-of related to an Atlassian product? I really love those pieces of wisdom concentrat...

118 views 16 2
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot