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 Sign up to comment
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Published 5 hours ago in Feedback & Announcements

Community release notes for April 26, 2018

Release notes from our newest developer, @Maxwell Cady! New: When you create a new post related to a product, you now have the option to select Cloud or Server. This will automatically ...

25 views 1 3
Read article

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