• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAX-WS client.

 
Bennet Xavier
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Bennet Xavier
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ivan Krizsan,

Thank you very much.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic