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 6738145
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T11:19:56+00:00 2026-05-26T11:19:56+00:00

I am using svcutil to generate a proxy file for use against a service

  • 0

I am using svcutil to generate a proxy file for use against a service we consume. Currently, I have a batch file that we can run at anytime to regenerate the proxy file if the service changes. However, I always have to adjust a few values on the bindings after the proxy file generation. Some examples of the changes I need to make are to maxbuffersize, maxreceivedmessagesize and sendtimeout.

Are there any switches to adjust these values as part of the generation process or does it need to be done via post processing of the generated client?

Thanks.

Edit:

“C:\Program Files\Microsoft SDKs\Windows\v7.0a\bin\SvcUtil.exe”
/tcv:Version35 /config:Proxy.config /t:code
https://myserviceprovider.com/Webservices/FirstService.svc?wsdl
/out:FirstServiceClient.cs
/namespace:”http://FirstService/services/”,”MyServices.FirstService”

“C:\Program Files\Microsoft SDKs\Windows\v7.0a\bin\SvcUtil.exe”
/tcv:Version35 /config:Proxy.config /t:code
https://myserviceprovider.com/Webservices/SecondService.svc?wsdl
/out:SecondServiceClient.cs /mergeConfig
/namespace:”http://SecondService/services/”,”MyServices.SecondService”
…

So in the above example, the first statement creates the Proxy.config file, and the second command uses /merge to merge what is generated by the second statment with the first. In reality there are a few other commands after these and I end up with a Proxy.config file that allows me to connect with the webservice. The problem is, the generated Proxy.Config has some example bindings like the following;

                <binding name="FirstServiceBasicHttpEndpoint" 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="524288" maxReceivedMessageSize="2147483647"
                    messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
                    useDefaultWebProxy="true">
                    <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                        maxBytesPerRead="4096" maxNameTableCharCount="16384" />
                    <security mode="TransportWithMessageCredential">
                        <transport clientCredentialType="None" proxyCredentialType="None"
                            realm="" />
                        <message clientCredentialType="UserName" algorithmSuite="Default" />
                    </security>
                </binding>

In the XML snippet above, I’ve already adjusted the maxBufferSize and maxReceivedMessageSize but I’d be keen to know if it were possible to do this as part of a svcutil switch.

  • 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. Editorial Team
    Editorial Team
    2026-05-26T11:19:57+00:00Added an answer on May 26, 2026 at 11:19 am

    You need to tweak the svcutil.exe.config as demonstrated in this post: http://enterpriseframework.com/post/2009/04/09/Using-a-External-Configuration-file-for-SvcUtilexe-to-generate-a-WCF-Service-Proxy.aspx

    You may come across a situation in which a Service you are trying to create a proxy for is very large and you may receive maxStringContentLength size is to small errors or increase maxNameTableCharCount size errors. You may need to tweek the settings in order for the proxy to be created. I recommend you copy the SvcUtil.exe and SvcUtil.exe.config file into a Temp folder and just run it from there. You can then modify the SvcUtil.exe.config at will to fit your needs.

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

Sidebar

Related Questions

Using TortoiseSVN against VisualSVN I delete a source file that I should not have
I was trying to use svcutil.exe to generate proxy classes for a service but
I'm using svcutil to generate proxy code for the following web service endpoint which
Using svcutil, I'm trying to generate a proxy class for a web service endpoint
At the client end, I have generated a Proxy using SvcUtil.exe and it is
I've created proxy classes using svcutil with a given "SAP CRM" WSDL file. It
I'm attempting to use svcutil.exe to generate -only- the service contracts (interfaces) from a
When using svcutil.exe, I noticed this switch, /tcv:Version35. The docs says this: Version35: Use
Using PyObjC , you can use Python to write Cocoa applications for OS X.
We have OSB services that are currently secured with a username and a password.

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.