cphillips83 / csharptest-net

Automatically exported from code.google.com/p/csharptest-net
0 stars 0 forks source link

Add proxy support #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
error: HTTP 407 proxy authentication error when calling a web service 

Solved^
In Tools\SvnPlugin\Web References\Jira\Reference.cs

added
    using System;
    using System.Xml.Serialization;
+    using System.Net;

        public JiraSoapServiceService() {
            this.Url = "http://jira.atlassian.com/jira/rpc/soap/jirasoapservice-v2";
+       this.Proxy = new WebProxy();
+            this.Proxy.Credentials = CredentialCache.DefaultCredentials;

Original issue reported on code.google.com by anton.af...@gmail.com on 26 Oct 2010 at 4:43

GoogleCodeExporter commented 8 years ago
I still don't get why .Net doesn't do this by default. annoying.  Next time I 
release JiraSvn I'll get this change merged and verified.

Original comment by Grig...@gmail.com on 2 Nov 2010 at 11:23

GoogleCodeExporter commented 8 years ago
The GitHub project has been updated to support authenticated proxy servers.
https://github.com/csharptest/JiraSVN

Though I have not yet included this commit in the installers, if you have a 
chance I'd appreciate you getting/building/testing this fix if you have a 
chance.  The fix is in two parts:

1. Setting UseDefaultCredentials = true; on the jira web service.  I suspect 
this will be enough to enable you to work properly.

2. Added an App.Config setting "jira:proxyurl" which can be supplied with a URI 
to a proxy server.

I suspect this will just work for you; however, if you're unable to connect 
after a clean install try setting the proxy server manually in the 
SvnPlugin.dll.config file.

Let me know if this solves your issues.

Thx

Original comment by Grig...@gmail.com on 26 Jan 2011 at 11:05