Skip to main content

Creating new Web Service Client Ports

1 reply [Last post]
rbagdaz
Offline
Joined: 2007-03-23
Points: 0

I have an application that needs to communicate with a number of remote servers all of which will support the same WebService interface methods as provided by a common WSDL document. Could someone point me in the right direction on how to create Web Service port objects that will have a changing target ip address and port id which will be dynamically defined at run time? I have had no problem creating dedicated web service clients that connect and communicate with the proxy defined when the service is added to the project, but I need to be able to change the targeted device dynamically.

Thanks in advance.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
ramapulavarthi
Offline
Joined: 2004-06-01
Points: 0

If the wsdl is common, you can see this https://jax-ws.dev.java.net/guide/How_to_invoke_and_endpoint_by_overridi... that shows overriding the service endpoint address dynamically.