[
https://issues.apache.org/jira/browse/CXF-7104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Daniel Kulp updated CXF-7104:
-----------------------------
Component/s: Transports
> Unable to increase chunkingThreshold limit in cxf 3.1.1
> -------------------------------------------------------
>
> Key: CXF-7104
> URL: https://issues.apache.org/jira/browse/CXF-7104
> Project: CXF
> Issue Type: Bug
> Components: Transports
> Reporter: sid
>
> I am using spring 4.1.7 mvc project and using cxf 3.1.1 being a client.
> The problem is while making soap service call,it is failing if the request
> size is anything greater than 4k (4095 charcter to be exact) and works if
> below 4k. After some research found we can increase the threshold so tried
> setting threshold limit to 12K but for some reason it is still throwing me
> the same error.
> Note :- I cannot make allowChuking to false as the service where it is being
> hosted accept chunking.
> protected void setHttpProp(org.apache.cxf.endpoint.Client client) {
> HTTPConduit conduit = (HTTPConduit) client.getConduit();
> HTTPClientPolicy policy = new HTTPClientPolicy();
> AuthorizationPolicy authorization = conduit.getAuthorization();
> authorization.setUserName("abc");
> authorization.setPassword("abc");
> //policy.setChunkLength(8000);
> policy.setChunkingThreshold(12000);
> conduit.setClient(policy);
> }
> Any help in the issue would be highly appreciated.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)