Spring - WebServiceTemplate with socks proxy

461 views Asked by At

I want to make SOAP request using proxy, but I need to use SOCKS instead of HTTP. Using java.net.Proxy I can build something like this:

Proxy proxy = new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("host", port));

Is there a way to pass this instance to WebServiceTemplate? I found a solution for HTTP so can I do something like that?

0

There are 0 answers