aspose file tools*
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.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAX-WS client.
 
Similar Threads
How can I return empty entity bean
Communication between EJBs deployed in different Application Servers from different vendors
hibernate auto generate database indexes
Error in running EJB client code
can we use same class for handle and web service?