Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Axis and Axis2 to develop Web Service

Tags:

axis

axis2

rad

In my project, I will have to develop a some data in/out interfaces based on Web Service technology. So until now I have studied about it.

What I am curious about Web Service with Java is what library I can use or not.

As I searched java library, I found that Axis2 and CXF are very common and famous java w/s library. The problem is I have to use RAD 7.0 which contains axis.

It seems there are huge change between Axis and Axis2 and unfortunately I can't use Axis2.

Now, my partner provides WSDL and I have to implement client-side W/S. If I create client-side proxy code from WSDL by Axis or Axis2 or CXF, are they all same code?

Or If I have to make WSDL to provide my W/S interface with Axis, can it be the problem to Axis2 or CXF user?

In my circumstance, I am very new and afraid of using Axis. Can anybody give me some advice??

thanks.

have a good day.

like image 963
nick Avatar asked Dec 04 '12 10:12

nick


3 Answers

Some other differences I found :

  • For Axis 2 development Java version 5 and later is required. For Axis 1 java v5 or later is not required. It works on Java v4.

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

  • Axis don't support Annotations , Axis 2 supports annotations so supports new way of developing webservice with annotations e.g @Webservice / @ Webmethod annotations.

like image 135
supernova Avatar answered Oct 14 '22 05:10

supernova


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

I personally prefer Axis2 over Axis.

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

like image 20
subbu Avatar answered Oct 14 '22 04:10

subbu


Through experience, I did find that some WSDLs can get parsed by Axis1 but not Axis2 and some messages being sent by Axis2 does not work on services that have worked with Axis1.

Nuances in arrays from generated WSDLs rather than hand written ones and accented characters being interpretted differently by the server side (i.e. works with CDATA but not without)

On a personal note, I use whatever wsimport generates from the JDK rather than some other tool, but some frameworks such as Curam require axis/axis2

like image 36
Archimedes Trajano Avatar answered Oct 14 '22 04:10

Archimedes Trajano