0 Replies Latest reply on May 22, 2013 11:36 PM by skrasovsky

    How to use @JsonEncoding.

    skrasovsky

      Hi.

       

      My environment:

      - JBoss 5.x

      - JBoss native ws 3.1.2 GA

       

      I don't understand how to use @JsonEncoding.

       

      I have the web service class with annotations:

       

      @Stateless

      @WebService(serviceName = "Service", name = "Service")

      @WebContext(contextRoot = "/root")

      @RemoteBinding(jndiBinding = "/ejb3/Service")

      @SOAPBinding(style = SOAPBinding.Style.RPC)

      @JsonEncoding

      @Remote(Service.class)

      public class ServiceEJB

       

      When i go to the url  http://host:port/root/ServiceEJB?wsdl, i get the xml answer.

       

      Anybody know how to get json answer?

      It should be another url, may be with "?js" (like in the metro jax ws) or i use @JsonEncoding not correctly.

       

      Thanks.