Thanks Ian, going to try. My workaround was to call after startup, before
creating first client:
org.springframework.context.annotation.CommonAnnotationBeanPostProcessor
c =
((org.springframework.context.annotation.CommonAnnotationBeanPostProcessor)
applicationContext.getBean(
"org.springframework.context.annotation.CommonAnnotationBeanPostProcessor"
));
c.ignoreResourceType("org.apache.cxf.transport.http.HTTPConduit");
c.ignoreResourceType(
"org.apache.cxf.configuration.security.AuthorizationPolicy");
c.ignoreResourceType(
"org.apache.cxf.transports.http.configuration.HTTPClientPolicy");
c.ignoreResourceType(
"org.apache.cxf.configuration.security.ProxyAuthorizationPolicy");
c.ignoreResourceType(
"org.apache.cxf.configuration.jsse.TLSClientParameters");
c.ignoreResourceType(
"org.apache.cxf.transport.http.MessageTrustDecider");
c.ignoreResourceType(
"org.apache.cxf.transport.http.HttpBasicAuthSupplier");
best regards
jano
Ian Roberts <[EMAIL PROTECTED]>
08/08/2008 14:24
Bitte antworten an
[email protected]
An
[email protected]
Kopie
Thema
Re: http-conf:conduit problem - [Virus checked]
[EMAIL PROTECTED] wrote:
> how can i modify this code to disable http chunking if required?
After the "T port = (T) factory.create();", you can do
Client client = ClientProxy.getClient(port);
Conduit conduit = client.getConduit();
if(conduit instanceof HTTPConduit) {
HTTPClientPolicy policy = ((HTTPConduit)conduit).getClient();
if(policy == null) {
policy = new HTTPClientPolicy();
((HTTPConduit)conduit).setClient(policy);
}
// disable chunking
policy.setAllowChunking(false);
}
Ian
--
Ian Roberts | Department of Computer Science
[EMAIL PROTECTED] | University of Sheffield, UK