locked
How to configure WebProxy? RRS feed

  • Question

  • Hi,

    using the sample "AuthenticateWithNoHelp" from the SDK I can connect to CRM Online and read the contact entities. Well, for my tests I set the DefaultWebProxy like following:

    WebRequest.DefaultWebProxy = WebRequest.GetSystemWebProxy();
    WebRequest.DefaultWebProxy.Credentials = CredentialCache.DefaultNetworkCredentials;
    
    IServiceManagement<IDiscoveryService> serviceManagement = 
    ServiceConfigurationFactory.CreateManagement<IDiscoveryService>(new Uri(_discoveryServiceAddress)); // some other code

    How can I define, the following options:

    • Use WebProxy (yes/no).
    • If a WebProxy is used, authenticate with (1.) integrated Windows Authentication or (2.) with UserName, PW, Domain?

    And how can I set the proxy options only for the request?

    Thanks
    Christian

    Thursday, February 9, 2017 8:27 AM