974027 wrote:no, i don't. and, poking at it a little bit, i'm guessing it's not trivial (maybe i'm missing some obvious tie between a SocketFactory and a Proxy...).
Thanks for the quick answer,
Do you know how to implement Femi's solution that is described in the link you sent me? (the relpy that is marked as an answer)
His instructions are not very clear
974027 wrote:Probably best if you see / show us the HTTP traffic using a sniffer ( wireshark or something similar ).
I have been trying to implement a ProxySelector but i was getting too many errors so I tried doing this as an alternative :
(connecting to the webservice using HttpURLConnection and POST method)
Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(theHost, thePort));
URL url = new URL(theUrl);
HttpURLConnection con = (HttpURLConnection)url.openConnection(proxy);
con.setRequestProperty("Content-type", "text/xml; charset=utf-8");
OutputStream reqStream = con.getOutputStream();
But at this line i get:
Unable to tunnel through proxy. Proxy returns "HTTP/1.1 400 Bad Request"
ANy ideas? Can I use POST method to invoke a WS operation?
974027 wrote:huh? if you have a working solution, why don't you just resolve the "thread-safety" problem, whatever that is?
I am still having this problem,
Can't anyone help?
I have managed to make ProxySelector work BUT the admin in the office disapproves (something about thread-safety) so I want a totally different way.