users@jersey.java.net

consuming xml

From: Youssef ALAHYANE <youssef.alahyane_at_gmail.com>
Date: Mon, 16 Mar 2009 10:55:07 +0100

Hi Paul,
Thanx for your last reply it helps me a lot to progress in my project. The
final question i'd like to answer is the following:
I have a ressource method that uses PUT httpMethod by consuming xml Mime,
the problem for me is that i don't know how to consume the received xml in
other words how can I retrieve and parse the consumed XML to create the
corresponding java object.


@Path("/test/{sessionCode}")
    @Produces("application/xml")
@Consumes("application/xml")
    public String setHistory(@PathParam("sessionCode") String sessionCode)
    {
       I don't know how to get and retrieve consumed xml

Thank you,
Best regards.