Click here to Skip to main content
16,021,125 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Can we transfer data in compressed format using wcf.
I'm using wcf service.
XML
<behaviors>
      <serviceBehaviors>
        <behavior name="MyBehaviour">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
          <dataContractSerializer maxItemsInObjectGraph="2147483647" />
        </behavior>
      </serviceBehaviors>
    </behaviors>    
    
    <services>
      <service name="Manager.Mobile.WebService.MyService" behaviorConfiguration="MyBehaviour">
        <endpoint name="MyServiceEndPoint" address=""
                  binding="basicHttpBinding"
                  bindingConfiguration="MyServiceBinding"
                  contract="Manager.Mobile.WebService.IMyService" />
        <endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex" />
      </service>
    </services>
    
    <bindings>
      <basicHttpBinding>
        <binding name="MyServiceBinding"
               receiveTimeout="00:05:00"
               sendTimeout="00:05:00"
               openTimeout="00:05:00"
               closeTimeout="00:05:00"
               transferMode="Streamed"
               bypassProxyOnLocal="false"
               useDefaultWebProxy="true"
               maxBufferSize="2147483647"
               maxReceivedMessageSize="2147483647"
               maxBufferPoolSize="2147483647">
          <readerQuotas maxDepth="2147483647"
                        maxStringContentLength="2147483647"
                        maxArrayLength="2147483647"
                        maxBytesPerRead="2147483647"
                        maxNameTableCharCount="2147483647" />
          <security mode="None" />
        </binding>
      </basicHttpBinding>
    </bindings>
Posted
Updated 8-Dec-14 7:45am
v4

1 solution

 
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