Difference between Axis and Axis2 for Web Service Development

In my project, I will have to develop some input / output interfaces based on web services technology. So so far I have been studying this.

What I'm interested in about a web service with Java is which library I can use or not.

When I searched the java library, I found that Axis2 and CXF are a very common and well-known java w / s library. The problem is that I have to use RAD 7.0, which contains an axis.

There seems to be a huge change between Axis and Axis2 and, unfortunately, I cannot use Axis2.

My partner now provides WSDL, and I need to implement client-side W / S. If I create client side proxy code from WSDL using Axis or Axis2 or CXF, is this the same code?

Or if I need to do WSDL to provide my Axis W / S interface, maybe a problem for Axis2 or CXF users?

In my circumstances, I am very new and afraid to use Axis. Can someone give me some advice?

thanks.

they are having a good day.

+4
source share
3 answers

No, each of them generates a different code. Although they all work for the same purpose.

I personally prefer Axis2 over Axis.

To get various pros and cons on each of them, you can go through this: comparison link

+1
source

From my experience, I found that some WSDLs can be processed by Axis1, but not Axis2, and some messages sent by Axis2 do not work on services that worked with Axis1.

The nuances in arrays from the generated WSDL, but not written by hand, and accented characters are interpreted differently on the server side (i.e. work with CDATA, but not without)

In a personal note, I use everything that wsimport generates from the JDK, and not some other tool, but some frameworks like Curam require an axis / axis2

+1
source

Some other differences that I found:

  • Axis is only supported until JDK 1.4, not Java 5. Axis 2 supports Java 5 and suites.

  • Axis is the RI of the old JAX-RPC 1.1, Axis 2 is the implementation of the new JAX-WS 2.x

  • Axis does not support annotations, Axis 2 supports annotations, therefore it supports a new way to develop webservice with annotations, for example @ Webservice / @ Webmethod annotations.

0
source

All Articles