users@jersey.java.net

consume xml

From: guilhem legal <guilhem.legal_at_geomatys.fr>
Date: Tue, 22 Jan 2008 17:36:18 +0100

hi!

I'm trying to do a simple thing (I think) with jersey but its not working.
I want to handle two different POST request with diferent MIME type.
I use an other application whitch is supposed to send the request :

my code :

@HttpMethod("GET")
    public Response doGET() throws JAXBException {

        return treatIncommingRequest();
    }
   
   
    @HttpMethod("POST")
    @ConsumeMime("application/x-www-form-urlencoded")
    public Response doPOSTKvp(String request) throws JAXBException {
       
        -------------------------------------------------------
    }
   
  
    @HttpMethod("POST")
    @ConsumeMime("text/xml")
    public Response doPOSTXml(Object request) throws JAXBException {
        ----------------------------------------------------------------
    }

It never enter in the method doPOSTXml. So have i make a mistake?

Guilhem Legal