Axis2 vs spring-ws vs jersey

My friend asked me to explain the difference between Spring, axis2 and Jersey. Here I have listed a few differences that I know of. Comment / reply if you know more differences.

Spring webservices:

  • A java web application with servlets configured in web.xml (org.springframework.ws.transport.http.MessageDispatcherServlet).
  • You can use spring annotated POJOs to create web services.
  • Supports both RESTful web services and SOAP.
  • Since your web application, you can use http authentication mechanisms for security

Axis2:

  • The webservice application is a .aar file that will be deployed to the axis2.war file
  • Use AXIOM to use non-primitive type arguments for web service calls.
  • You can use JSR181 annotations to create web services.
  • You can use the spring injection dependency using axis2 extensions.
  • Supports both RESTful web services and SOAP.
  • I assume that you need to use the ws-security implementation to provide security to your web services>
  • They claim that hot web services deployment works, but I have not seen it work.

Jersey:

  • A typical web application with a servlet configured in web.xml.
  • Write your own device for reading / writing messages to use non-primitive type arguments for the web interface service calls
  • Since your web application, you can use http authentication mechanisms for security
  • Support for only RESTful web services implementations
  • I have seen that working with hot deployment can be related to the fact that its web application and container can do hot deployment
+6
spring-ws jersey axis2
source share
1 answer

I am not familiar with Jersey and Axis, but I can tell you something about Spring-WS.

You cannot use Spring -WS for quiet web services. Spring -WS is intended to be used for the first contract web services. However, you can use the Spring 3.x and Spring-MVC functions for REST services. As for authorization, you can easily connect to any security (for example, using Spring-Security).

I am a big fan of the "automatic" (de) marshalling functions of Spring -WS. Just comment on your methods with the correct types and he will know what to do.

0
source share

All Articles