Axis2 vs JAX-WS

axis2ejb-3.0jax-wssoapweb services

I have to implement SOAP based web services for a project. We are considering different options like axis2, ejb as a web service, jax-ws but not really sure about the advantages/drawbacks of these options. Can someone please help in this regard.

It would be great if someone can point to any other alternatives for implementing SOAP based webservices.

Thanks in advance,
-Csn

Best Answer

For me, the easiest way to expose a web service is creating an EJB with annotations (JAX-WS) if you are using a Java EE server like JBoss.

Consuming a WS is a bit different but I prefer JAX-WS too, because Axis2 throw exceptions if you use complex parameters (classes) and you add an attribute. JAX-WS instead calls every 'get' and 'set' for the serialized xml. If no 'set' is implemented, no problem. That's an advantage for backward compatibility.

Related Topic