You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Tim C." <ti...@hotmail.com> on 2003/01/23 15:27:23 UTC

http.proxyHost

Hi

I am setting up a program so that the user specifies the proxy host & proxy 
port graphically. If the wrong proxies are used & connection fails they are 
given a window to change them in & connection tried again.

If I set the correct proxies before I make the first SOAP call then this is 
fine and connection is made, using

System.getProperties().put("https.proxyHost", "theProxyToUse");
System.getProperties().put("https.proxyPort", "thePortToUse");

But if it fails to connect to the server the first time a call is made I 
get:
AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: java.io.IOException: Unable to tunnel through wwwcache:80.  
Proxy returns
"HTTP/1.1 405 Method Not Allowed"
faultActor: null
faultDetail:
        stackTrace: java.io.IOException: Unable to tunnel through 
wwwcache:80.  Proxy re
turns &quot;HTTP/1.1 405 Method Not Allowed&quot;
        at 
org.apache.axis.components.net.JSSESocketFactory.create(JSSESocketFactory.jav
a:229)
        at 
org.apache.axis.transport.http.HTTPSender.getSecureSocket(HTTPSender.java:156
)
        at 
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:116)
        at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:7
1)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
        at org.apache.axis.client.Call.invoke(Call.java:2102)
        at org.apache.axis.client.Call.invoke(Call.java:1851)
        at org.apache.axis.client.Call.invoke(Call.java:1777)
        at org.apache.axis.client.Call.invoke(Call.java:1315)


Then if the user changes the proxies to the correct values again using the 
methods above for setting the properties, it still does not connect and 
appears to use the old proxy values!

In other words if a Axis call is made and then the proxies changed it 
doesn't seem to be using the new values. Has anyone come across this before?

Thanks.



_________________________________________________________________
MSN Messenger - fast, easy and FREE! http://messenger.msn.co.uk