Search code examples
webspherejax-wsapache-axis

Using JAX-WS client with Axis2 on WebSphere 7


I have to develop a JAX-WS client which has to be deployed to WebSpehere 7. WebSphere 7 uses a custom Axis2 implementation.

I've read on this guide (http://axis.apache.org/axis2/java/core/docs/jaxws-guide.html) to use wsimport to generate classes necessary for client. But generated classes reference to com.sun.xml.ws.spi.ProviderImpl in jaxws-rt.jar (present in JRE6), while when client runs on Websphere they reference org.apache.axis2.jaxws.spi.Provider.

Is it correct? Using Oracle JDK wsimport is the correct way to follow also if clients will be use Axis2 implementation?


Solution

  • There should be a wsimport tool as part of your WAS installation. I found mine under /IBM/WebSphere/AppServer/bin

    Try using that tool to generate your classes, instead of the one from Oracle. It should generate classes that are more compatible with WebSphere.

    You could also go get Axis2 from Apache. I imagine that Apache's wsimport (or equivalent) will produce classes that are most server independent.

    http://axis.apache.org/axis2/java/core/download.cgi