• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 167
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ;)
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Your mind is under my control .... your will is now mine .... read this tiny ad
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic