[jboss-user] [JBoss Web Services] - How to use @JsonEncoding.

Sergey Krasovsky do-not-reply at jboss.com
Wed May 22 23:36:15 EDT 2013


Sergey Krasovsky [https://community.jboss.org/people/skrasovsky] created the discussion

"How to use @JsonEncoding."

To view the discussion, visit: https://community.jboss.org/message/818989#818989

--------------------------------------------------------------
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 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.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/818989#818989]

Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130522/5d35445b/attachment.html 


More information about the jboss-user mailing list