aspose file tools*
The moose likes Web Services and the fly likes parse xml response in Jersey (RESTful webservice) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "parse xml response in Jersey (RESTful webservice)" Watch "parse xml response in Jersey (RESTful webservice)" New topic
Author

parse xml response in Jersey (RESTful webservice)

thilsen kumar
Greenhorn

Joined: Jul 10, 2007
Posts: 13
Hi all,

I am using Jersey web services for RESTful based calls. Here i want to use xml representation. it returns xml representation. but here if i want to extract the data(parse) and display in jsp means , how can i acoomplish this?

Please advise me,

Thanks & Regards,
thilsen
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12675
    
    5
That is an XML question, not a REST question.

The standard Java library for XML parsing is quite sufficient to handle this but there are so many options. I suggest you start with parsing local XML files and only proceed to web service plus JSP when you are comfortable with XML parsing.

Harold's online book is very complete and free.

Bill


Java Resources at www.wbrogden.com
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
My document http://faq.javaranch.com/content/Exam-Objectives-5.pdf contains description and examples of how to use the JAXP APIs and JAXB to process XML.
See sections 5.5, 5.6 and 9.2.
Best wishes!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: parse xml response in Jersey (RESTful webservice)
 
Similar Threads
What kind of data representation usually used in Restful?
RESTful client or HTTP client with DOM
new architecture
SAX Parsing using javascript
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jersey/api/cl ient/config/ClientC