aspose file tools*
The moose likes Web Services and the fly likes Jax-ws and apache axis Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Jax-ws and apache axis" Watch "Jax-ws and apache axis" New topic
Author

Jax-ws and apache axis

sue gari
Greenhorn

Joined: Nov 03, 2010
Posts: 10
This is a newbie question. Can you tell me the difference between jax-ws and apache axis. Is it possible to build web services just using jax-ws and not apache axis. What would be advantages and disadvantages.

Thanks.



James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1021
    
    5

Hi Sue

You can develop web services using either JAX-WS or Apache Axis.

Both libraries are an implementation of XML-based web services using the Simple Object Access Protocol (SOAP).

As I have never used Apache Axis, I cannot comment on its advantages but a disadvantage in using it is that you are then tied to using tomcat as your application server.
Sridhar Thatipatri
Greenhorn

Joined: Feb 28, 2012
Posts: 3
Hi Sue,
The Advantatages building a webservice in Axis2 is
A new XML processing model
A messaging-based extensible core
An improved deployment model
Pluggable data binding support
Asynchronous and synchronous Web services invocation
To know more in detail on above please refer this link http://dev.aol.com/axis2-next-generation-web-services
Apart from these i personally felt , Axis2 has easy ways to implement security over jax ws.

Hi James, Any security example(specifically on encryption) in Jax WS is appreciated.
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
James Boswell wrote:Both libraries are an implementation of XML-based web services using the Simple Object Access Protocol (SOAP).

No. JAX-WS is not a library, it is a specification for which several implementations exists: The JAX-WS reference implementation (generally used in the shape of the Metro library), Axis-2, JBossWS, and some others.

As I have never used Apache Axis, I cannot comment on its advantages but a disadvantage in using it is that you are then tied to using tomcat as your application server.

No. Axis-2 is a Java web app like any other - it can be run on any server that includes a servlet engine: Tomcat, JBoss, Resin, WebSphere, WebLogic etc.
Ayyadapu Sunitha
Greenhorn

Joined: Feb 29, 2012
Posts: 2
Hi,

Sridhar has posted gud advatages of Axis2 . Would like to 2 more points to that

1) Extensible Nature of Axis2[/size]In Axis2, there are many ways to extend the functionalities
Service extension of the module
Custom deployers
Message Receivers

2) Support for In-Only and In-Out message exchange patterns (MEP)
Tim Moores
Rancher

Joined: Sep 21, 2011
Posts: 2408
As I pointed out, the comparison of JAX-WS and Axis-2 is not valid - one is a specification, one is an implementation. So it's entirely unclear what Sridhar Thatipatri and Ayyadapu Sunitha are comparing.
James Boswell
Bartender

Joined: Nov 09, 2011
Posts: 1021
    
    5

Tim

I take your point. I guess when people refer to JAX-WS, I automatically think of the core Java web service classes as its own library which as you have pointed out, is not correct.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Jax-ws and apache axis