我正在努力使用 Camel SXF 组件。我需要它不使用分块编码,但我找不到设置参数的正确方法。
根据 Apache CXF 文档(http://cxf.apache.org/docs/client-http-transport-including-ssl-support.html)应该有一个名为“AllowChunking”的参数,但我在尝试时没有运气使用它。我试过这个
.to("cxf:bean:pdsEndpointBean?loggingFeatureEnabled=true&properties.AllowChunking=false")
和这个
@Bean
public CxfEndpoint pdsEndpointBean() {
CxfEndpoint cxfEndpoint = new CxfEndpoint();
cxfEndpoint.setAddress(endpoint);
cxfEndpoint.setEndpointName("foo");
cxfEndpoint.setWsdlURL("bar");
cxfEndpoint.setServiceClass(foo);
HashMap<String, Object> properties = new HashMap<>();
properties.put("AllowChunking",false);
cxfEndpoint.setProperties(properties);
return cxfEndpoint;
}
谁能帮我吗 ?非常感谢 :)
使用骆驼 3.0.1