• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to generate web service client dynamically using jax-ws?  RSS feed

Dhananjay Inamdar
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

I am pretty new to the webservice area.

In our organization we mostly have to consume web services exposed by our technology partner. I am suggesting to use JAX-WS tool to generate the web service client using wsimport command.
Problem is our technology partner has provided us three different WSDL file URLs for DEV, QA and Prod environment. We have to make sure to invoke appropriate URL from our respective environment.

JAX-WS generates three different clients when we provided three differnt WSDL URLs, which is a problem.

We use Maven to build our projects but we are not allowed to use build parameter like generate war for DEV or QA or Prod. Also we cann't maintain three different versions of project with the only difference in POM file about denepndency on which webservice client.

I am sure this is not first time some one facing this problem.

Please do let me know the solution you guys are using to resolve this.

It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!