This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread 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 Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "JAX-WS client." Watch "JAX-WS client." New topic

JAX-WS client.

Bennet Xavier
Ranch Hand

Joined: Jun 19, 2008
Posts: 162

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,

Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
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:
Bennet Xavier
Ranch Hand

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

Thank you very much.
rocket mass heater kickstarter
subject: JAX-WS client.