1 Reply Latest reply on Jan 2, 2013 1:24 PM by samlewis

    How correctly produce json by RESTFUL web service on Fuse ESB?

    nehal_sadek

      I'm using CXf and JSON on FUSE ESB, I implement a restful web service as the following:

       

      RestFul Method:

       

      @GET

      @Path("/user")

      @Produces(MediaType.APPLICATION_JSON)

      public User handleGeUser() {

      User user = new User();

      return user;

      }

       

      bundle-context.xml

       

            

       

       

       

       

      and I got this error "No message body writer has been found for response class User." when calling the my user rest service.

       

      could any one advise?