Sending SOAP message by Proxy in Java
问题 I need to know how to set a Proxy and confirm that it is working. I have made a test program looking like this: Where you can specify a proxy address and port number. (I found the address and port on: http://www.freeproxylists.net/) The SOAP call is looking like this when "Use Proxy" is checked: Socket socket = new Socket(); SocketAddress sockaddr = new InetSocketAddress(PROXY_ADDRESS, PROXY_PORT); socket.connect(sockaddr, 10000); Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress