[jboss-user] [JBossWS] - Recomended way to build server and client with maven?

sverker do-not-reply at jboss.com
Tue Jan 6 05:51:53 EST 2009


Hi,
I think this should be a FAQ as it's asked many times in the forum but I can't find any answers.

What is the recommended way to build server and client side of a webservice for jbossws with maven2?

To partly answer my own question, on the where I build my webservice with annotated classes, I added the following dependency to get it to work:


  | 			<dependency>
  | 				<groupId>org.jboss.ws</groupId>
  | 				<artifactId>jbossws-framework</artifactId>
  | 				<version>3.0.4.GA</version>
  | 				<scope>provided</scope>
  | 			</dependency>
  | 

However, I have not found a clear answer on how to generate the client side stub. I found two possible solutions:

* Use the jaxws:wsimport maven goal. This use the wsimport tool from Sun RI. Is this method fully functional with JbossWS?

* Use the wsconsume ant task with maven-antrun-plugin. Should work fine but is not a very "elegant" solution.

Which is the best way, or is there another recommended way?

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

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



More information about the jboss-user mailing list