Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jax-ws client dynamic invocation of webservice

843833Feb 19 2007 — edited Apr 11 2008
hi i want to know if there is a way to specify the wsdl location progamatically at runtime..
   @WebServiceRef(wsdlLocation = "http://localhost:8080/helloservice/hello?wsdl")
i want to make the wsdlLocation dynamic..for the location of my webservices will be retrieved from a database at run time so i need to make my webservice location a variable.

e.g.
  String wsdl_loc=rs.getString("ws_url");
   @WebServiceRef(wsdlLocation = wsdl_loc);
is this possible with jax-ws?

thanks in advance for your help..
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 9 2008
Added on Feb 19 2007
6 comments
1,206 views