This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

set the webservice location dynamically

tarik el berrak
Posts: 29
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I want to generate my client classes using a wsdl file.
I have 3 environments (dev, hom, and prod) for my client linked to a 3 server environments and each server with a webservice wsdl in which only the location change.
I use the Wscompile (jaxrpc-ri.jar) ant task to generate my classes.

I want to externalize the wsdl location (ex : put a variable in wsdl location that I can set dynamically to use the desired webservice (dev, hom, prod).

the constructor generated is :

public TestNameServiceSoap_Stub(HandlerChain handlerChain) {
super(handlerChain); _setProperty(ENDPOINT_ADDRESS_PROPERTY,"http://SERVER-IP-ADDRESS/TestName.asmx");

what I want if possibe is something like :

public TestNameServiceSoap_Stub(HandlerChain handlerChain) {
super(handlerChain); _setProperty(ENDPOINT_ADDRESS_PROPERTY,VARIABLE_TO_BE_SET);
VARIABLE_TO_BE_SET can be read from a property file

Thank you in advance
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic