[ http://jira.codehaus.org/browse/XFIRE-799?page=comments#action_82544 ] Dieter Salathe commented on XFIRE-799: --------------------------------------
Thanks, I tried that but it does not work. I found in CommonsHttpMessageSender.createClient() line 255: client.getHostConfiguration().setProxy(proxyHost, port); the settings which are set here is the correct proxy and port. However, I still get the same error! > Cannot use XFire with https and proxy server > -------------------------------------------- > > Key: XFIRE-799 > URL: http://jira.codehaus.org/browse/XFIRE-799 > Project: XFire > Issue Type: Bug > Affects Versions: 1.2.3 > Environment: Windows 2000 Professional, Java 1.4.2_08 > Reporter: Dieter Salathe > Assigned To: Tomasz Sztelak > > Hi, > I created a WebService with XFire. The WebService is only available via HTTPS. > My test clients works fine when I connect directly to the service. But when I > am behind a proxy server, I get the HTTP 407 error: > org.codehaus.xfire.XFireRuntimeException: Could not invoke service.. Nested > exception is org.codehaus.xfire.fault.XFireFault: Server returned error code > = 407 for URI : > https://www.xxxx.xxx/sds/servlet/XFireServlet/DFCSessionService. Check server > logs for details > org.codehaus.xfire.fault.XFireFault: Server returned error code = 407 for URI > : https://www.xxxx.xxx/sds/servlet/XFireServlet/DFCSessionService. Check > server logs for details > at org.codehaus.xfire.fault.XFireFault.createFault(XFireFault.java:89) > at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:79) > at org.codehaus.xfire.client.Client.invoke(Client.java:335) > at > org.codehaus.xfire.client.XFireProxy.handleRequest(XFireProxy.java:77) > at org.codehaus.xfire.client.XFireProxy.invoke(XFireProxy.java:57) > at $Proxy0.getAvailableDocbases(Unknown Source) > at > ch.comlog.sds.client.DFCConnection.getAvailableDocbases(DFCConnection.java:128) > at > ch.comlog.sds.client.DFCConnectionManager.main(DFCConnectionManager.java:143) > Caused by: org.codehaus.xfire.XFireRuntimeException: Server returned error > code = 407 for URI : > https://www.comlog.ch/sds/servlet/XFireServlet/DFCSessionService. Check > server logs for details > at > org.codehaus.xfire.transport.http.HttpChannel.sendViaClient(HttpChannel.java:130) > at > org.codehaus.xfire.transport.http.HttpChannel.send(HttpChannel.java:48) > at > org.codehaus.xfire.handler.OutMessageSender.invoke(OutMessageSender.java:26) > at > org.codehaus.xfire.handler.HandlerPipeline.invoke(HandlerPipeline.java:131) > at org.codehaus.xfire.client.Invocation.invoke(Invocation.java:75) > ... 6 more > I set the proxy server and user with: > System.setProperty("https.proxyUser", "user"); > System.setProperty("https.proxyPassword", "pwd"); > System.getProperties().setProperty( "https.proxyHost", > "172.19.136.103" ); > System.getProperties().setProperty( "https.proxyPort", "8080" ); > The settings are correct, I can access a https website behind the proxy with > a simple URL and open a connection on that url. But I cannot call the web > service! > Anybody know where the problem could be? Any hints are greatly appreciated. > Thanks in advance > Dieter -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email
