Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 174347
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T13:30:20+00:00 2026-05-11T13:30:20+00:00

I have a simple WCF Service that needs to handle large datastreams, so I

  • 0

I have a simple WCF Service that needs to handle large datastreams, so I have the a lot of the config values bumped up above the defaults. I’ve recently been moving all of my code into a new, restructured solution, and I just moved over the service. However, when I try to generate a client proxy (using either WCFTestClient.exe or ‘Add Service Reference’ in VS2008, the values in the client proxy config do not match what I have setup for the service.

This is the server config – notice the increased values for maxBufferSize, maxReceivedMessageSize, maxStringContentLength and MaxArrayLength

  <system.serviceModel>     <bindings>           <basicHttpBinding>         <binding name='default' maxBufferSize='5000000' maxReceivedMessageSize='5000000'>           <readerQuotas maxStringContentLength='5000000' maxArrayLength='5000000' />           <!-- turn this setting on to require SSL/https -->           <!-- <security mode='Transport' /> -->         </binding>              </basicHttpBinding>     </bindings>     <behaviors>       <serviceBehaviors>         <behavior name='Consent.Service.SubjectConsentServiceBehavior'>           <serviceMetadata httpGetEnabled='true' />           <serviceDebug includeExceptionDetailInFaults='true' />         </behavior>       </serviceBehaviors>     </behaviors>     <services>       <service behaviorConfiguration='Consent.Service.SubjectConsentServiceBehavior'         name='Consent.Service.SubjectConsentService'>         <endpoint address='' binding='basicHttpBinding' bindingConfiguration='default'           contract='Consent.Service.ISubjectConsentService'>           <identity>             <dns value='localhost' />           </identity>         </endpoint>         <endpoint address='mex' binding='mexHttpBinding' contract='IMetadataExchange' />       </service>     </services>   </system.serviceModel> 

Here is the proxy generated by VS2008 with ‘Add Service Reference’

<system.serviceModel>     <bindings>         <basicHttpBinding>             <binding name='BasicHttpBinding_ISubjectConsentService' closeTimeout='00:01:00'                 openTimeout='00:01:00' receiveTimeout='00:10:00' sendTimeout='00:01:00'                 allowCookies='false' bypassProxyOnLocal='false' hostNameComparisonMode='StrongWildcard'                 maxBufferSize='65536' maxBufferPoolSize='524288' maxReceivedMessageSize='65536'                 messageEncoding='Text' textEncoding='utf-8' transferMode='Buffered'                 useDefaultWebProxy='true'>                 <readerQuotas maxDepth='32' maxStringContentLength='8192' maxArrayLength='16384'                     maxBytesPerRead='4096' maxNameTableCharCount='16384' />                 <security mode='None'>                     <transport clientCredentialType='None' proxyCredentialType='None'                         realm='' />                     <message clientCredentialType='UserName' algorithmSuite='Default' />                 </security>             </binding>         </basicHttpBinding>     </bindings>     <client>         <endpoint address='http://server/Consent/services/SubjectConsent.svc'             binding='basicHttpBinding' bindingConfiguration='BasicHttpBinding_ISubjectConsentService'             contract='ServiceReference1.ISubjectConsentService' name='BasicHttpBinding_ISubjectConsentService' />     </client> </system.serviceModel> 

The client proxy has those 4 values set to the default.

Any ideas why the client is using the default values?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T13:30:21+00:00Added an answer on May 11, 2026 at 1:30 pm

    The values that are set in the server’s config file are not exposed as part of the web service’s metadata (because they relate to the transport layer, not the service itself), so a client (or, in this case, the ‘Add Service Reference’ function) has no way to find out about them automatically. (All ‘Add Service Reference’ does is ask for the WSDL and generate corresponding classes; it does not have access to transport-related settings in the config file.)

    As such, you’ll need to override them on both the client and server.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a simple WCF service: public Order[] GetOrdersByStatus(int statusid) { OrderService os =
I have created a simple wcf service which used the WCF Service Library template.
Should simple JavaBeans that have only simple getters and setters be unit tested?? What
I have a simple webform that will allow unauthenticated users to input their information,
I have a simple 2-column layout with a footer that clears both the right
I have simple regex \.*\ for me its says select everything between and ,
Ok, i have simple scenario: have two pages: login and welcome pages. im using
In general, is it a best practice to have simple POJO Java classes implement
I develop tools in Autodesk Maya. Many of the tools I build have simple
I have a simple page with my ScriptManager and my UpdatePanel , and my

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.