Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a text file with 35K lines which is read by Secured WCF service(https) and response is send back to .net application.

config settings

XML
<binding name="BasicHttpBinding_IService1" closeTimeout="00:15:00"
        openTimeout="00:15:00" receiveTimeout="00:15:00" sendTimeout="00:15:00"
        allowCookies="false" bypassProxyOnLocal="false"
        maxBufferSize="2147483647" maxBufferPoolSize="524288" maxReceivedMessageSize="2147483647"
        messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
        useDefaultWebProxy="true">
          <readerQuotas maxDepth="64" maxStringContentLength="2147483647" maxArrayLength="2147483647"
           maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
          <security mode="Transport">
            <transport clientCredentialType="None" proxyCredentialType="None" realm=""/>
            <message clientCredentialType="Certificate" algorithmSuite="Default" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>

There is problem collecting the result back to client, its works for 9K records however anything more than that returns NULL.

Please suggest help to settings

Thanks in advance
Posted
Updated 13-May-15 9:54am
v2

XML
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
  <bindings>
    <wsHttpBinding>
      <binding openTimeout="00:10:00"
               closeTimeout="00:10:00"
               sendTimeout="00:10:00"
               receiveTimeout="00:10:00" maxReceivedMessageSize="4194304" maxBufferPoolSize="4194304">

      </binding>
    </wsHttpBinding>

    <basicHttpBinding>
      <binding
                 name="MyServiceConsumerBinding"
                 closeTimeout="00:01:00"
                 openTimeout="00:01:00"
                 receiveTimeout="00:10:00"
                 sendTimeout="00:01:00"
                 allowCookies="false"
                 bypassProxyOnLocal="false"
                 hostNameComparisonMode="StrongWildcard"
                 maxBufferSize="5000000"
                 maxBufferPoolSize="524288"
                 maxReceivedMessageSize="5000000"
                 messageEncoding="Text"
                 textEncoding="utf-8"
                 transferMode="Buffered"
                 useDefaultWebProxy="true">
        <readerQuotas
                     maxDepth="32"
                      maxStringContentLength="2147483647"
                      maxArrayLength="2147483647"
                      maxBytesPerRead="2147483647"
                      maxNameTableCharCount="2147483647" />

      </binding>
    </basicHttpBinding>

  </bindings>
</system.serviceModel>


Hope this will help you
 
Share this answer
 
v4
Could you be reaching the recieveTimeout threshold?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900