[ https://issues.apache.org/jira/browse/CXF-8916?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17762122#comment-17762122 ]
Colm O hEigeartaigh commented on CXF-8916: ------------------------------------------ Please see here [https://cxf.apache.org/docs/security.html#Security-ControllingLargeRequestPayloads] "These settings can be set as Bus level properties, endpoint level properties, or even per request via an interceptor." Here's an example I think [https://github.com/apache/cxf/blob/d1396f4ce4ffb890b2434930402a8890094d7079/systests/forked/src/test/java/org/apache/cxf/systests/forked/dispatch/DispatchClientServerWithHugeResponseTest.java#L93] > Replacement for StaxUtils.setInnerElementCountThreshold > ------------------------------------------------------- > > Key: CXF-8916 > URL: https://issues.apache.org/jira/browse/CXF-8916 > Project: CXF > Issue Type: Improvement > Components: WS-* Components > Affects Versions: 3.4.0 > Reporter: Rich M > Priority: Minor > > This is related to CXF-8273, where following method was removed from code: > public static void setInnerElementCountThreshold(int i) > Description also states - "Instead, set the system properties to customize > how we restrict XML." > If I set property just like this, would it be effective ? > {color:#1d1c1d}System.setProperty("com.ctc.wstx.maxChildrenPerElement", > "100000");{color} > {color:#1d1c1d}or should it be:{color} > {color:#1d1c1d}{color:#1d1c1d}System.setProperty("org.apache.cxf.stax.maxChildElements", > "100000");{color}{color} -- This message was sent by Atlassian Jira (v8.20.10#820010)