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

    How to use @JsonEncoding.

    Sergey Krasovsky Newbie



      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:



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

      @WebContext(contextRoot = "/root")

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

      @SOAPBinding(style = SOAPBinding.Style.RPC)



      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.