This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Process XML response with servlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Process XML response with servlet" Watch "Process XML response with servlet" New topic
Author

Process XML response with servlet

DD711
Greenhorn

Joined: Sep 24, 2004
Posts: 1
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

Joined: Jan 23, 2002
Posts: 11962
    
    5
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?


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Dirk Schreckmann
Sheriff

Joined: Dec 10, 2001
Posts: 7023
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.


[How To Ask Good Questions] [JavaRanch FAQ Wiki] [JavaRanch Radio]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Process XML response with servlet
 
Similar Threads
migration to Struts2
HELP ME WITH XML-RPC (TransMaster)
HELP ME��� XML RPC doubt
c:if question
XML-RPC Problem