What is the maximum size of a SOAP 1.1 Message in WCF?

    I'm writing a WCF Web Service that is hosted in IIS 6 using C#.  I will be transfering an XML document within my SOAP message and I need to know how large the XML document can be before it can nolonger be transmitted.  I have attached a snippet of my web.config file.  I way I have it setup now, I believe I can transmit 10 MBytes.  Do I just change this to a larger value to be able to send files over 10 MBytes?

<binding name="WebServicebasicHttpBindingConfig" maxBufferSize="10000000" maxReceivedMessageSize="10000000">
<readerQuotas maxStringContentLength="10000000" maxArrayLength="10000000"/>
<security mode="None">
<transport clientCredentialType="None"/>

Open in new window

Who is Participating?
Siva Prasanna KumarConnect With a Mentor Principal Solutions ArchitectCommented:
Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
I am not sure if its possible or not, but if you want to send a data worth 10MB or so, use SOAP with attachments.


pbenitoAuthor Commented:
I can't use SOAP with attachments.  Is there a way to do this without SOAP attachments?

Siva Prasanna KumarPrincipal Solutions ArchitectCommented:
Actually that article is very nice :) in fact its really a very big number for MaxSize, I still don't know how much Java can support, need to test that some time.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.