wood burning stoves 2.0*
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


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.
 
GeeCON Prague 2014
 
subject: JAX-WS client.