CRM 2016 Online - configure webproxy RRS feed

  • Question

  • Hi,

    I am using the samples from the CRM SDK to connect to CRM 2016 online. I can read entities and everything works fine.

    Well, currently I am setting the default webproxy:

    WebRequest.DefaultWebProxy = WebRequest.GetSystemWebProxy();
    WebRequest.DefaultWebProxy.Credentials = CredentialCache.DefaultNetworkCredentials;

    I do not want to modify the default webproxy. How can I configure the proxy only for the specified connection?

    var serviceManagement = ServiceConfigurationFactory.CreateManagement<IDiscoveryService>(new Uri(DiscoveryServiceAddress));
    var endpointType = serviceManagement.AuthenticationType;
    var authCredentials = GetCredentials(serviceManagement, endpointType, a_config);
    using (var discoveryProxy = GetProxy<IDiscoveryService, DiscoveryServiceProxy>(serviceManagement, authCredentials))

    Thursday, September 21, 2017 3:59 PM