File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Process XML response with servlet

 
DD711
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've problem to process XML response from the server with servlet.

Example for the XML response as below:-

<IONNEX>
<RESULT>SUCCESS</RESULT>
<REPORTID>848a930d-3bb0-4a54-b260-fac6dfbd66eb1</REPORTID>
<SPLIT>1</SPLIT>
<CREDIT>1</CREDIT>
</IONNEX>

how i can get this response using servlet? have some body can help me, please.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've got two questions for you:

1) Could you please change your display name into something compliant with the naming policy (a real, two-part name required).

2) Could you elaborate on what you mean by "processing server response in a servlet"? Is your servlet making an HTTP request to another server? If so, with which API you're making the HTTP request?
 
Dirk Schreckmann
Sheriff
Posts: 7023
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you perhaps asking about how to use data in XML format with Java?

If so, I think you could very easily turn your example XML into a Java object using XStream.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic