This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Web Services and the fly likes JAX-WS client. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS client." Watch "JAX-WS client." New topic
Author

JAX-WS client.

Bennet Xavier
Ranch Hand

Joined: Jun 19, 2008
Posts: 162
Hi,

i need to write a client for webservices, i used wsimport to generate the client side classes.

it created with hard coded values in annotation, can i make that dynamic, i mean the wsdllocation is hardcoded in annotation @WebServiceClient.

can i make that configurable,

Thanks,
Bennet.
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
The following code snipped allows you to modify the endpoint address used by generated stubs:

Note how the port object is cast to a BindingProvider.
Best wishes!


My free books and tutorials: http://www.slideshare.net/krizsan
Bennet Xavier
Ranch Hand

Joined: Jun 19, 2008
Posts: 162
Hi Ivan Krizsan,

Thank you very much.
 
 
subject: JAX-WS client.