I was able to change where it queries the web service but not from where it downloads the wsdl file
Main Topics
Browse All TopicsI am using NetBeans 6.1 to construct a console application using JAX-WS to generate code to consume a Web Service. How can I change the url of the end point for the web service at runtime? It would be preferable to be set in an xml configuration file.
Thanks in advance
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
This code will change the service location but not the WSDL location and the service is hosted at different locations(development and production) but the locations cannot communicate with each other. So it wouldn't work if I can only change the service location because it would try to download the WSDL from the development location which is not accesible from the production location.
you have used WSDL only for creation of Client stubs and thats it. I don't think it will download WSDL every time, once the stubs are created based on the endpoint (generally derived from WSDL , in your case you are overriding manually) the service will be invoked appropriately.
if u have to change the WSDL it self then u must recreated the stubs with the new WSDL.
Well in netbeans it does download the WSDL I do not why but it does it
I get the following error
javax.xml.ws.WebServiceExc
Connection timed out: connect.
Try opening the same link in browser and see
http://192.168.10.71:8080/
it look like wsdl location is incorrect.
Business Accounts
Answer for Membership
by: shivaspkPosted on 2008-10-23 at 02:31:19ID: 22784342
Take a look this
etbeans.j2 ee/2007-05 /msg00042. html
http://osdir.com/ml/java.n