How to generate web service client dynamically using jax-ws?
posted 3 years ago
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.
Just like you, struggeling to get the right solutions!<br /> <br />Sun Certified Java Programmer 1.5<br /> <br />Target - SCWCD