Slow SoapHttpClientProtocol constructor

后端 未结 6 1797
情话喂你
情话喂你 2020-12-02 10:28

I\'m doing some experiments with Microsoft Dynamics CRM. You interact with it through web services and I have added a Web Reference to my project. The web service interface

6条回答
  •  北荒
    北荒 (楼主)
    2020-12-02 11:25

    I came across this thread when trying to find out why my initial SoapHttpClientProtocol calls were taking so long.

    I found that setting the Proxy to null/Empty stopped the Proxy AutoDetect from occurring - This was taking up to 7 seconds on the initial call:

    this.Proxy = GlobalProxySelection.GetEmptyWebProxy();
    

提交回复
热议问题