Json support in JAX-WS JBoss eap 6

Latest response


I have a web service developed using metro and supporting Json Binding

public class myJSONInterface extends AbstractmyInterface{

    public myJSONInterface() throws Exception {

I have seen that JAW-RS supports Json in JBoss, but how to resolve this Binding using JBoss Jax-ws.


I'm really not sure what you are asking here. Did you try looking at the jax-ws site? https://jax-ws-commons.java.net/json/

Yes but I am no more using metro. I am using the JBossws-cxf stack so this annotation is not accepted.
Is there any way to specify a Json Binding.

If you are doing JAX-WS why do you want to use JSON? JSON Support on CXF is provided as part of the RESTful services (JAX-RS) See [1] and [2]. If you want to use JAX-RS in EAP then you need to use the RESTEasy implementation in JBoss.

[1] http://cxf.apache.org/docs/json-support.html
[2] http://cxf.apache.org/docs/jax-rs-data-bindings.html#JAX-RSDataBindings-JSONsupport