• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAX-WS vs. Axis2

 
John Landon
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am writing web service. Why would I use axis2 if I have jax-ws already shipped with java6?

Thanks.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JAX-WS is just one API; Axis2 implements a good deal more, e.g. WS-Security. The built-in stuff also limits you to using the built-in web server (which is rather limited in capability), and the API versions it implements (of JAX-WS and JAXB) are already outdated. So I wouldn't use it for more than toying around; certainly not for a production setting.
 
John Landon
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks.
What about this comparison? Did they compare the built in jax-ws or the axis2 jax-ws?

http://weblogs.java.net/blog/kohsuke/archive/2007/02/jaxws_ri_21_ben.html
 
John Landon
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I do decide to use the implementation of axis2 is the config the same? I mean web.xml:
<servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
.....
<listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>

and I also need the sun-jaxws.xml?

because it can't find the servlet in web.xml
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did they compare the built in jax-ws or the axis2 jax-ws?

Looks like he compared the RI with the Axis2 implementation. The JDK6 version is an older version of the RI.

If I do decide to use the implementation of axis2 is the config the same?

No, the details are not the same - they're different implementations. In particular, no changes to the Axis 2 web.xml are necessary. Axis2 comes with a number of examples that show how to use various aspects of JAX-WS in use.
 
John Landon
Ranch Hand
Posts: 228
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok thanks. So if I use the RI version from https://jax-ws.dev.java.net/2.1.4/
that's the newest one right?
[ October 20, 2008: Message edited by: John Landon ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic