• 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
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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.
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic