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
Community showcase
Posted 8 hours ago in United States

Topic Tuesday: What's your favorite topic?

Good morning All, Our goal is to get you into the habit of while enjoying your favorite morning drink you are checking the NOVA "space" for topics and comments. Your input is really needed and...

28 views 4 0
View post

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