开发者

JBoss/JaxWS/JaxB: SOAP and JSON binding to one webservice

开发者 https://www.devze.com 2023-03-07 03:52 出处:网络
Hello. I\'ve written a SOAP-webservice using JAX-WS and JAX-B, running on a JBoss 5. Due to the overhead of SOAP I now try to enable the access 开发者_运维问答to the webservice via JSON (but it shoul

Hello.

I've written a SOAP-webservice using JAX-WS and JAX-B, running on a JBoss 5.

Due to the overhead of SOAP I now try to enable the access 开发者_运维问答to the webservice via JSON (but it should still be available via SOAP).

My question now is the following:

  • Is it possible to use the same webservice class (with the, via JaxB defined, bean class as parameter) for both endpoints?
  • Can I also use JAX-B to parse the JSON input / output at the same bean as I use it for the SOAP transfer?
  • And if it is possible: How? Or where should I start?
0

精彩评论

暂无评论...
验证码 换一张
取 消