Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Kudret Serin
Ranch Hand
Posts: 167
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Kudret Serin
Ranch Hand
Posts: 167
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 167
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42967
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic