Note that there are some explanatory texts on larger screens.

plurals
  1. PONeed expert advice for WCF Service programming
    primarykey
    data
    text
    <p>!--- I'm sorry if this post is redundant with some others, but the problem with my project seems to be resulting of my architecture, so I need general help. ---!</p> <p>I'm trying to configure a WCF Service connected to a Silverlight 5 client-side and a C# class library doing CRUD requests to a database. The service will have to pass GIGANTIC amount of data. For example, I have a <strong>public IList&lt; RainRecord> GetAllRain()</strong> method in my service class that can retrieve hundreds of thousands of records in the database, will probably be even more than that someday. So I thought I could get all these records by smaller batches (I think it's a pretty good approach).</p> <p>Here's my web.config file :</p> <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt; &lt;!--This file contains the web configuration used by the WCF service. --&gt; &lt;configuration&gt; &lt;system.web&gt; &lt;compilation debug="true" targetFramework="4.0" maxBatchGeneratedFileSize="2147483647" maxBatchSize="2147483647" /&gt; &lt;httpRuntime maxRequestLength="2147483647" /&gt; &lt;/system.web&gt; &lt;system.serviceModel&gt; &lt;serviceHostingEnvironment aspNetCompatibilityEnabled="true"&gt; &lt;serviceActivations&gt; &lt;add service="PoseidonServiceNamespace.PoseidonService" relativeAddress="~/PoseidonService.svc"/&gt; &lt;/serviceActivations&gt; &lt;/serviceHostingEnvironment&gt; &lt;bindings&gt; &lt;basicHttpBinding&gt; &lt;binding closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true"&gt; &lt;readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" /&gt; &lt;security mode="None"&gt; &lt;transport clientCredentialType="None" proxyCredentialType="None" realm="" /&gt; &lt;message clientCredentialType="UserName" algorithmSuite="Default" /&gt; &lt;/security&gt; &lt;/binding&gt; &lt;/basicHttpBinding&gt; &lt;/bindings&gt; &lt;behaviors&gt; &lt;serviceBehaviors&gt; &lt;behavior name="PoseidonServiceBehavior"&gt; &lt;serviceMetadata httpGetEnabled="true"/&gt; &lt;serviceDebug includeExceptionDetailInFaults="true"/&gt; &lt;dataContractSerializer maxItemsInObjectGraph="2147483647"/&gt; &lt;/behavior&gt; &lt;/serviceBehaviors&gt; &lt;/behaviors&gt; &lt;services&gt; &lt;service behaviorConfiguration="PoseidonServiceBehavior" name="PoseidonServiceNamespace.PoseidonService"&gt; &lt;endpoint address="http://localhost:49455/PoseidonService.svc" binding="basicHttpBinding" contract="PoseidonServiceNamespace.IPoseidonService"/&gt; &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/&gt; &lt;/service&gt; &lt;/services&gt; &lt;/system.serviceModel&gt; &lt;system.webServer&gt; &lt;modules runAllManagedModulesForAllRequests="true"/&gt; &lt;/system.webServer&gt; &lt;/configuration&gt; </code></pre> <p>What are the changes I should do in this file (and why?), and how should I implement my public IList GetAllRain() method in my service?</p> <p>Thank you really much, I've been banging my head on this for a while</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload