Solved

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

Posted on 2008-06-16
4
1,218 Views
Last Modified: 2013-12-17
Hi,
   
    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?

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

Open in new window

0
Comment
Question by:pbenito
  • 3
4 Comments
 
LVL 23

Expert Comment

by:Siva Prasanna Kumar
ID: 21798943
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.

http://weblogs.asp.net/cibrax/archive/2007/08/29/sending-attachments-with-wcf.aspx

http://tristanbates.wordpress.com/2007/08/30/sending-attachments-with-wcf/
0
 

Author Comment

by:pbenito
ID: 21814734
I can't use SOAP with attachments.  Is there a way to do this without SOAP attachments?


Thanks!
0
 
LVL 23

Accepted Solution

by:
Siva Prasanna Kumar earned 500 total points
ID: 21818243
0
 
LVL 23

Expert Comment

by:Siva Prasanna Kumar
ID: 21818260
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.
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
C# guarantee sql connection close 6 39
tutorial for ebay api 3 32
asp enable view state 1 22
Calculate number of nights between two dates 5 17
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Viewers will learn about arithmetic and Boolean expressions in Java and the logical operators used to create Boolean expressions. We will cover the symbols used for arithmetic expressions and define each logical operator and how to use them in Boole…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now