<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Disable chunked encoding (JBoss AS7)
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/amarkanth84">Amarkanth Ranganamayna</a> in <i>JBoss Web Services</i> - <a href="https://community.jboss.org/message/741101#741101">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>Hello,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am getting the following error when i try to POST data to a webservice which doesn't support "CHUNKED" encoding.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Previously (i.e. in Jboss 4.3), i was able to turn off the CHUNKED encoding by setting the following configuration in "<span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;"><strong>jboss-as/server/default/deploy/jbossws.sar/META-INF/standard-jaxws-client-config.xml"</strong><br/></span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">&#160; &lt;client-config&gt; </span></p><p><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">&#160;&#160;&#160; &lt;config-name&gt;Standard Client&lt;/config-name&gt; </span></p><p><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">&#160;&#160;&#160; &lt;feature&gt;<span style="color: #0000ff; text-decoration: underline;"><a class="jive-link-external-small" href="http://org.jboss.ws/dispatch/validate%3C/feature%3E">http://org.jboss.ws/dispatch/validate&lt;/feature&gt;</a></span> </span></p><p><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">&#160;&#160;&#160; &lt;property&gt; </span></p><p><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">&#160;&#160;&#160;&#160;&#160; &lt;property-name&gt;<span style="color: #0000ff; text-decoration: underline;"><a class="jive-link-external-small" href="http://org.jboss.ws/http#chunksize%3C/property-name%3E">http://org.jboss.ws/http#chunksize&lt;/property-name&gt;</a></span> </span></p><p><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;"> <strong>&#160;&#160;&#160;&#160; &lt;property-value&gt;0&lt;/property-value&gt; </strong></span></p><p><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">&#160;&#160;&#160; &lt;/property&gt; </span></p><p><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">&#160; &lt;/client-config&gt;</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">HOW CAN I DO THIS IN&#160; JBOSS-AS7.1 ?</span></p><p><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">I don't see&#160;&#160; </span>"<span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;"><strong>jboss-as/server/default/deploy/jbossws.sar/META-INF/standard-jaxws-client-config.xml" </strong>anymore in AS7. Any help is much appreciated!</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">The exact error that i'm running into is</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">==============================================</span><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">======================</span><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">======================</span></p><p><span style="font-size: 8pt; font-family: Monaco,Courier New;">22:43:30,391 WARNING [org.apache.cxf.phase.PhaseInterceptorChain] (scheduler_Worker-3) Interceptor for {<span style="color: #0000ff; text-decoration: underline;"><a class="jive-link-external-small" href="http://services.ordermgmt.webex.com/%7DOrderMgmtWebService#%7Bhttp://services.ordermgmt.webex.com/%7DprocessOrder">http://services.xyz.com/}OrderServcice#{http://services.xyz.com/}processOrder</a></span> has thrown exception, unwinding now: org.apache.cxf.interceptor.Fault: Could not send Message.<br/>&#160;&#160;&#160;&#160; at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(<span style="color: #000080; text-decoration: underline;">MessageSenderInterceptor.java:64</span>)<br/>&#160;&#160;&#160;&#160; at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(<span style="color: #000080; text-decoration: underline;">PhaseInterceptorChain.java:263</span>)<br/>&#160;&#160;&#160;&#160; at org.apache.cxf.endpoint.ClientImpl.doInvoke(<span style="color: #000080; text-decoration: underline;">ClientImpl.java:531</span>)<br/>&#160;&#160;&#160;&#160; at org.apache.cxf.endpoint.ClientImpl.invoke(<span style="color: #000080; text-decoration: underline;">ClientImpl.java:461</span>)<br/>&#160;&#160;&#160;&#160; at org.apache.cxf.endpoint.ClientImpl.invoke(<span style="color: #000080; text-decoration: underline;">ClientImpl.java:364</span>)<br/>&#160;&#160;&#160;&#160; at org.apache.cxf.endpoint.ClientImpl.invoke(<span style="color: #000080; text-decoration: underline;">ClientImpl.java:317</span>)<br/>&#160;&#160;&#160;&#160; at org.apache.cxf.frontend.ClientProxy.invokeSync(<span style="color: #000080; text-decoration: underline;">ClientProxy.java:88</span>)<br/>&#160;&#160;&#160;&#160; at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(<span style="color: #000080; text-decoration: underline;">JaxWsClientProxy.java:134</span>)</span></p><p><span style="font-size: 8pt; font-family: Monaco,Courier New;">.......</span></p><p><span style="font-size: 8pt; font-family: Monaco,Courier New;">.......</span></p><p><span style="font-size: 8pt; font-family: Monaco,Courier New;">Caused by: <span style="color: #000080; text-decoration: underline;">org.apache.cxf.transport.http.HTTPException</span>: HTTP response '411: Length Required' when communicating with <span style="color: #0000ff; text-decoration: underline;"><a class="jive-link-external-small" href="https://global-apollosoauat.webex.com/OrderMgmtWebV2/OrderMgmtWebService">https://services.xyz.com/OrderService</a><br/> </span>&#160;&#160;&#160; at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(<span style="color: #000080; text-decoration: underline;">HTTPConduit.java:1554</span>)<br/>&#160;&#160;&#160;&#160; at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(<span style="color: #000080; text-decoration: underline;">HTTPConduit.java:1493</span>)<br/>&#160;&#160;&#160;&#160; at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(<span style="color: #000080; text-decoration: underline;">HTTPConduit.java:1401</span>)<br/>&#160;&#160;&#160;&#160; at org.apache.cxf.transport.AbstractConduit.close(<span style="color: #000080; text-decoration: underline;">AbstractConduit.java:56</span>)<br/>&#160;&#160;&#160;&#160; at org.apache.cxf.transport.http.HTTPConduit.close(<span style="color: #000080; text-decoration: underline;">HTTPConduit.java:648</span>)<br/>&#160;&#160;&#160;&#160; at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(<span style="color: #000080; text-decoration: underline;">MessageSenderInterceptor.java:62</span>)</span></p><p><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">==============================================</span><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">======================</span><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">======================</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">Thanks,</span></p><p><span style="font-size: 10pt; font-family: Calibri,Verdana,Helvetica,Arial;">Amar<br/></span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/741101#741101">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss Web Services at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2044">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>