Skip to main content

Invoking WS operation through a proxy

Please note these forums are being decommissioned and use the new and improved forums at
1 reply [Last post]
Joined: 2013-02-15

Hello all,

Using a WSDL that is online and through Netbeans, I created a WS client and managed to call its operations by (not actual class names):
Service theService = new Service();
Port thePort = theService.getPort();

The above code works just fine. But I want to bind thePort with a Proxy and whenever I callOperation(args) I want to call to go through a specific host and port.

Can this be done?
Any suggestions?

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2013-02-15

I have already tried using:
System.setPropertY(name, value);
I don't want that because it changes global properties.
I also used ProxySelector class and again not the solution I am looking for.