• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Process XML response with servlet

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Sheriff
Posts: 7023
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic