【问题标题】:WSDL first call always take more then 10 secondsWSDL 第一次调用总是需要超过 10 秒
【发布时间】:2016-10-19 11:58:24
【问题描述】:

[VB.net] 大家好,

我的代码有一个小问题。 我家国外有一台现有的服务器,我正在尝试创建与服务器的连接并且它可以工作。 我现在的问题是,第一次调用,无论是登录还是其他方法,它总是需要大约 10 秒:after first call

然后当我拨打第一个电话时,会发生这种情况:enter image description here

这是我的 AppConfig:

<configuration>
    <startup>
        <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5.1" />
    </startup>
    <system.serviceModel>
        <bindings>
            <basicHttpBinding>
                <binding name="binding"></binding>
            </basicHttpBinding>
        </bindings>
        <client>
            <endpoint address="link"
                 binding="basicHttpBinding" bindingConfiguration="binding"
                 contract="ServiceReference.serviceporttypüe" name="port" />
        </client>
    </system.serviceModel>
</configuration>

【问题讨论】:

    标签: vb.net wcf wsdl httpurlconnection service-reference


    【解决方案1】:

    据我所知,IIS 会在一段时间后释放资源,当您在此之后进行调用时,从服务获得响应需要更长的时间。

    编辑:也检查一下 IIS-Auto-Start

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-01-04
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多