Skip to main content

Invoking WS operation through a proxy

1 reply [Last post]
DimitrisM
Offline
Joined: 2013-02-15
Points: 0

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();
thePort.callOperation(args);

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.
DimitrisM
Offline
Joined: 2013-02-15
Points: 0

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.

Thanks