wood burning stoves*
The moose likes Web Services and the fly likes Which framework / API for creating web services? (JAX-WS 2.0 vs Axis2) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Web Services
Bookmark "Which framework / API for creating web services? (JAX-WS 2.0 vs Axis2)" Watch "Which framework / API for creating web services? (JAX-WS 2.0 vs Axis2)" New topic
Author

Which framework / API for creating web services? (JAX-WS 2.0 vs Axis2)

Kudret Serin
Ranch Hand

Joined: Aug 02, 2005
Posts: 167

Hi,

We would like to create web service and on step of decision which framework to use. If we consider about cross cutting tasks (like logging, authentication, error handling etc.), does axis2 brings more capabilities, features than jax-ws 2.0?
For example should I implement logging of each request by implementing a SOAPHandler? or is there already implemented mechanism for this?

I know it is a bit general question but I need expert comments / suggestions for decision.

Thanks in advance ;)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42050
    
  64
JAX-WS and Axis2 don't compete; the former is the specification, while the latter is an implementation of the specification. There are other implementations of JAX-WS, like Metro.

Are you definitely set on using SOAP? RESTful services (as implemented by toolkits like Jersey) are becoming much more popular these days.


Ping & DNS - my free Android networking tools app
Kudret Serin
Ranch Hand

Joined: Aug 02, 2005
Posts: 167

Thanks for reply. I meant using built in API of JavaSE 1.6 to create web service versus Axis2.
Is it possible to provide both SOAP and RESTFull service (on same url) with same server side implementation?

Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42050
    
  64
I meant using built in API of JavaSE 1.6 to create web service versus Axis2.

You can use Java SE to run both SOAP-based and RESTful WS, so that's not a deciding criterion.

Is it possible to provide both SOAP and RESTFull service (on same url) with same server side implementation?

No.
Kudret Serin
Ranch Hand

Joined: Aug 02, 2005
Posts: 167

Than what does it mean?

"In Axis2, by default, any given web service is exposed as both SOAP and REST.
The result is that as a service author, you do not need to do additional work.
However, it should be noted that for some services that are exposed using REST API will not work."

(Quotation from the book Packt's "Apache Axis2 Web Services" 2nd Edition)
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42050
    
  64
It means exactly that: Axis2 by default exposes services as both SOAP and REST. It just doesn't do so at the same URL (which is what you asked).

Also note that REST doesn't support a lof of features SOAP supports, like WS-Security. So all that won't work, either.
 
GeeCON Prague 2014
 
subject: Which framework / API for creating web services? (JAX-WS 2.0 vs Axis2)