Last active
January 1, 2016 05:39
-
-
Save traktraktrugui/b1e88c35d8784acef80b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Under "configuration" section in Web.config add this: | |
<system.net> | |
<defaultProxy enabled="true" useDefaultCredentials="true"></defaultProxy> | |
</system.net> | |
If you need to consume from HTTPS location add this configuration: | |
<message clientCredentialType="Certificate" algorithmSuite="Default" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WebService wsrc = new WebService(); | |
wsrc.Proxy = WebRequest.DefaultWebProxy; | |
wsrc.Proxy.Credentials = CredentialCache.DefaultNetworkCredentials; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WebService wsrc = new WebService(); | |
wsrc.Proxy = WebRequest.DefaultWebProxy; | |
wsrc.Proxy.Credentials = new NetworkCredential("name", "******************", "domain"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
WebService wsrc = new WebService(); | |
wsrc.Proxy = WebRequest.GetSystemWebProxy(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment