aspose file tools*
The moose likes Web Services and the fly likes JAX-WS vs. Axis2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS vs. Axis2" Watch "JAX-WS vs. Axis2" New topic
Author

JAX-WS vs. Axis2

John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 227
Hi,
I am writing web service. Why would I use axis2 if I have jax-ws already shipped with java6?

Thanks.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
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.


Ping & DNS - updated with new look and Ping home screen widget
John Landon
Ranch Hand

Joined: Sep 25, 2008
Posts: 227
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

Joined: Sep 25, 2008
Posts: 227
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
Marshal

Joined: Mar 22, 2005
Posts: 39578
    
  27
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

Joined: Sep 25, 2008
Posts: 227
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAX-WS vs. Axis2
 
Similar Threads
new bee start web services
JAX-WS Authentication
JAX-WS and JWSDP and Axis
webservice deployment folder structure
Help regarding User-name Token