title: The SOAP payload exceeds the configured size limit of the server
body: <p>I have simple, basic proxy in wso2 esb 4.8.1, where I send input message to my endpoint and show the result.</p>
  
  <pre><code>XML =&gt; Endpoint =&gt; XML
  </code></pre>
  
  <p>My endpoint receives only SOAP (soap envelope, body) messages with specific SOAPAction, so I set </p>
  
  <pre><code>&lt;property name="SOAPAction" value="MY VALUE" scope="transport"/&gt;
  </code></pre>
  
  <p>before send and I know that this is set properly.
  After send my message I get this error</p>
  
  <pre><code>SOAP-ENV:Client.PayloadSize
  The SOAP payload exceeds the configured size limit of the server!
  </code></pre>
  
  <p>I don't know why, because when I send this message by restClient I receive results.</p>
  
  <p>To eliminate input error I set PayloadFactory and set message (I'm sure that this message is ok) and I get the same error.</p>
  
  <p>Piece of my send code:</p>
  
  <pre><code>  &lt;property name="Content-Type"
                 value="text/xml"
                 scope="axis2"
                 type="STRING"/&gt;
   &lt;property name="SOAPAction" value="MY VALUE" scope="transport"/&gt;
   &lt;send&gt;
      &lt;endpoint&gt;
         &lt;http method="POST"
               uri-template="http:address"/&gt;
      &lt;/endpoint&gt;
   &lt;/send&gt;
  </code></pre>
  
  <p>Any ideas?</p>
  
  <p><strong>UPDATE 06.10.2015</strong></p>
  
  <p>ESB logs shows this error:</p>
  
  <pre><code>Received an internal server error : Internal Server Error For : MY_ADDRESS For Request : Axis2Request [Message ID : urn:uuid:2fa54584-6165-4abc-bf7e-b33679aa1ef9] [Status Completed : true] [Status SendingCompleted : true] {org.apache.synapse.transport.nhttp.ClientHandler}
  To: http://www.w3.org/2005/08/addressing/anonymous, WSAction: , SOAPAction: , MessageID: urn:uuid:2fa54584-6165-4abc-bf7e-b33679aa1ef9, Direction: response, Envelope: &lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;soapenv:Body&gt;&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;SOAP-ENV:Body&gt;&lt;SOAP-ENV:Fault&gt;&lt;faultcode&gt;SOAP-ENV:Client.PayloadSize&lt;/faultcode&gt;&lt;faultstring&gt;The SOAP payload exceeds the configured size limit of the server!&lt;/faultstring&gt;&lt;/SOAP-ENV:Fault&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt;&lt;/soapenv:Body&gt;&lt;/soapenv:Envelope&gt; {org.apache.synapse.mediators.builtin.LogMediator}
  </code></pre>
  
  <p>I read on this site 
  <a href="http://www.w3schools.com/xml/xml_soap.asp" rel="nofollow">http://www.w3schools.com/xml/xml_soap.asp</a>
  that this is Client problem, but as I wrote earlier when I do CTR+C and CTR+V this payload message and put it to restClinet I get result.
  Maybe ESB add something strange and send it? </p>
  
  <p><strong>SECOND UPDATE 06.10.2015</strong></p>
  
  <p>I turned on DEBUG mode and get this:</p>
  
  <pre><code>DEBUG {org.apache.synapse.transport.http.wire} -  &lt;&lt; "POST MY_SERVICE HTTP/1.1[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &lt;&lt; "Content-Type: text/xml; charset=UTF-8[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &lt;&lt; "Accept-Encoding: gzip,deflate[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &lt;&lt; "SOAPAction: MY_URI[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &lt;&lt; "Transfer-Encoding: chunked[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &lt;&lt; "Host: MY-HOST[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &lt;&lt; "Connection: Keep-Alive[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &lt;&lt; "User-Agent: Synapse-HttpComponents-NIO[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &lt;&lt; "[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &lt;&lt; "4d4[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &lt;&lt; "&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"&gt;[\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &lt;&lt; "   &lt;SOAP-ENV:Body&gt;[\n]" {org.apache.synapse.transport.http.wire}
                                                              MY_MESSAGE HERE
  DEBUG {org.apache.synapse.transport.http.wire} -  &lt;&lt; "   &lt;/SOAP-ENV:Body&gt;[\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &lt;&lt; "&lt;/SOAP-ENV:Envelope&gt;[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &lt;&lt; "0[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &lt;&lt; "[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &gt;&gt; "HTTP/1.1 500 Internal Server Error[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &gt;&gt; "Content-Length: 342[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &gt;&gt; "Content-Type: text/xml; charset="UTF-8"[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &gt;&gt; "Server: Microsoft-IIS/7.5[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &gt;&gt; "X-Powered-By: ASP.NET[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &gt;&gt; "Date: Tue, 06 Oct 2015 11:42:30 GMT[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &gt;&gt; "Connection: close[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &gt;&gt; "[\r][\n]" {org.apache.synapse.transport.http.wire}
  DEBUG {org.apache.synapse.transport.http.wire} -  &gt;&gt; "&lt;?xml version="1.0" encoding="UTF-8"?&gt;&lt;SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"&gt;&lt;SOAP-ENV:Body&gt;&lt;SOAP-ENV:Fault&gt;&lt;faultcode&gt;SOAP-ENV:Client.PayloadSize&lt;/faultcode&gt;&lt;faultstring&gt;The SOAP payload exceeds the configured size limit of the server!&lt;/faultstring&gt;&lt;/SOAP-ENV:Fault&gt;&lt;/SOAP-ENV:Body&gt;&lt;/SOAP-ENV:Envelope&gt;" {org.apache.synapse.transport.http.wire
  </code></pre>
  
  <p>}</p>
  
  <p>I don't know why there is <strong>"4d4"</strong> before my message and <strong>"0"</strong> after it. Moreover there is <strong>"[\r][\n]"</strong> before and after. Is it wrong?</p>