This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: JAX-WS client.
 
Similar Threads
Error in running EJB client code
Communication between EJBs deployed in different Application Servers from different vendors
How can I return empty entity bean
can we use same class for handle and web service?
hibernate auto generate database indexes