[jboss-user] [JBossWS] - Re: Use of JAX-RPC in JBoss 4.2.3

glen_s do-not-reply at jboss.com
Thu Mar 5 12:15:06 EST 2009


I'll answer my own question in case anyone is trying to solve the same problem I had.

I found a tutorial at http://jaitechwriteups.blogspot.com/2006/12/simple-webservice-on-jboss-using-axis.html which admittedly was written for JBoss 4.0.4, but in comments seemed to indicate would work with Axis 1.4 on JBoss 4.2.x. By following the tutorial I was able to get a client web service running that uses soap encoding including for soap encoded arrays (particularly unsupported it seems, since from my understanding of some JBossWS documentation, JBossWS in previous versions did support soap encoding in part--just not for soap encoded arrays).

To jump to the chase, I simply put the following JARs from Axis 1.4 in my EAR's lib directory:
axis.jar, axit-ant.jar, commons-discovery-0.2.jar, jaxrpc.jar, saaj.jar, wsdl4j-1.5.1.jar 

No modifications were necessary to the JARs included in JBoss libs nor to the configuration of any classloader.

Do take note that if one tries to use Axis 1.4 to implement the server for a web service, some extra configuration seem to be necessary. In my case, I only needed a client so the above JARs in the EAR's lib were enough. But since I was initially following the above tutorial quite closely, and the tutorial does take you down the path of enabling a server, I did encounter and come up with a solution for enabling a server. I found that the compiler was not able to find J2EE classes in the compiler's classpath, which I fixed by copying jboss-j2ee.jar and servlet-api.jar from the JBoss default server's lib directory to my EAR's lib. As to whether this is the "right" thing to do to enable an Axis implemented server, I'm not sure, but I didn't try too hard since it wasn't part of my goal. 



View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4215414#4215414

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4215414



More information about the jboss-user mailing list