JFDu / salesforce-dotnet

Automatically exported from code.google.com/p/salesforce-dotnet
0 stars 0 forks source link

Modification to allow library to work via a Proxy Server #13

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Dear Sir,

Below is an ammended version of the SFBinding function that allows 
communication of the library via a proxy. Here is the code:

public SforceServiceGzip SFBinding {
    get {
        if (_binding == null) {
            _binding = new SforceServiceGzip(true, true);
            _binding.Proxy = WebRequest.DefaultWebProxy;
            _binding.Proxy.Credentials = CredentialCache.DefaultCredentials;
        }

        return _binding;
    }
}

Yours sincerely, Ralph Purtscher

Original issue reported on code.google.com by ralphpur...@hotmail.com on 15 Dec 2010 at 11:33