views:

20

answers:

0

Hi,

I am developing a small WPF application which is using web service. The web service is only available for internal users and they have to be logged in to their machines to be able to use it - it is using windows credentials.

Everything works well except the connection speed. It takes around 10 sec to initiate the connection and download the data. From then everything works faster - When I download the same data again it takes less than 2sec.

Do you have any idea why the first connection takes so much time? I know that it must check windows credentials but 10 sec is a long wait and my up looses its purpose.

Below is app.config:

<?xml version="1.0"?><configuration>
<system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="ServiceSoap" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="1000000" maxBufferPoolSize="1000000" maxReceivedMessageSize="1000000" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
          <readerQuotas maxDepth="32" maxStringContentLength="1000000" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384"/>
          <security mode="TransportCredentialOnly">
            <transport clientCredentialType="Windows" proxyCredentialType="None" realm=""/>
            <message clientCredentialType="UserName" algorithmSuite="Default"/>
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    <client>
        <endpoint address="http://localserv/tss/service.asmx" binding="basicHttpBinding" bindingConfiguration="ServiceSoap" contract="TAS.ServiceSoap" name="ServiceSoap"/>
    </client>
</system.serviceModel><startup><supportedRuntime version="v4.0"sku=".NETFramework,Version=v4.0"/></startup></configuration>

Thanks for any help