How to configure apache CXF property org.apache.cxf.stax.maxChildElements in quarkus #1325
-
Hello guys, How could I configure org.apache.cxf.stax.maxChildElements in quarkus? I'm trying to solve the exception below: jakarta.xml.ws.soap.SOAPFaultException: Unmarshalling Error: Maximum Number of Child Elements limit (50000) Exceeded Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
As of Quarkus CXF 3.9.0, there is no way to do it via Around here the CXF docs says it can be done per Bus or Endpoint. If Bus is fine for you, an Init bean like this should work: import jakarta.enterprise.event.Observes;
import org.apache.cxf.Bus;
import org.apache.cxf.BusFactory;
import io.quarkus.runtime.StartupEvent;
public class Init {
void onStart(@Observes StartupEvent ev) {
final Bus bus = BusFactory.getDefaultBus();
bus.setProperty("org.apache.cxf.stax.maxChildElements", "1024");
}
} |
Beta Was this translation helpful? Give feedback.
As of Quarkus CXF 3.9.0, there is no way to do it via
application.properties
.Around here the CXF docs says it can be done per Bus or Endpoint. If Bus is fine for you, an Init bean like this should work: