Solved

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

Posted on 2008-06-16
4
1,210 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
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:

746 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

13 Experts available now in Live!

Get 1:1 Help Now