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