I am trying to expose restful service using camel:cxfrs <cxf:rsServer address="http://localhost:8080" id="rsServer" serviceClass="mypackage.ServiceClass"/>
<bean id="serviceBean" class="mypackage.Servicebean"/> <camel:from uri="cxfrs://bean://rsServer"/> <camel:bean ref="serviceBean"/> @Path("/path") public class ServiceClass { @GET @Path("{id}") public String getName(@PathParam("id") int id){ // logic to get Name and return } @POST @Path("{id}") public void update(@PathParam("id") int id, String name){ // logic to update name } } Now, in this case camel only uses these methods to expose service, these are not actually invoked. In ServiceBean class how should i write methods corresponding for GET and POST methods. Please help. -- View this message in context: http://camel.465427.n5.nabble.com/cxfrs-GET-and-POST-handling-in-bean-tp5717342.html Sent from the Camel - Users mailing list archive at Nabble.com.