Hi all,
Is it possible to export same java method in a specific path with two
different http methods through REST-WS?
In order to illustrate what i want to do, I include a non-working
configuration for what I want to do:
*@POST [ at ] PUT@Consumes(MediaType.APPLICATION_XML)@Path("/all")public void
mymethod(Blabla blabla);*
I know it should be exposed by different methods, since the meaning of a
POST and a PUT in REST differs, but the specification of the third-party
software can not be modified.
Thanks a lot!
*Adrián Roselló Rey Distributed Applications and Networks Area (DANA) i2CAT
Foundation, Barcelona, Spain*
Is it possible to export same java method in a specific path with two
different http methods through REST-WS?
In order to illustrate what i want to do, I include a non-working
configuration for what I want to do:
*@POST [ at ] PUT@Consumes(MediaType.APPLICATION_XML)@Path("/all")public void
mymethod(Blabla blabla);*
I know it should be exposed by different methods, since the meaning of a
POST and a PUT in REST differs, but the specification of the third-party
software can not be modified.
Thanks a lot!
*Adrián Roselló Rey Distributed Applications and Networks Area (DANA) i2CAT
Foundation, Barcelona, Spain*