You could set the client's http configuration by using API like this

IMyService clientBean =(IMyService)context.getBean("client");

Client client = ClientProxy.getClient(hello);
HTTPConduit httpConduit = (HTTPConduit) client.getConduit();
HTTPClientPolicy httpClientPolicy = httpConduit.getClient();
httpClientPolicy.setAllowChunking(false);

Willem

dturanski wrote:
<http-conf:conduit name="{http://tempuri.org/}IMyServicePort.http-conduit";> <http-conf:client AllowChunking="false"/>
   </http-conf:conduit>
<jaxws:client xmlns:tns="http://tempuri.org/"; id="client"
serviceClass="org.tempuri.IMyService"
                
address="http://localhost:8888/HHCTransformation/WCFInterop/Service.svc";>
...

Ignores the http conduit client settings, even with wildcard *.http_conduit

The request:    

POST /HHCTransformation/WCFInterop/Service.svc HTTP/1.1
Content-Type: application/soap+xml;
action="http://tempuri.org/IMyService/SayHello";; charset=UTF-8
Accept: *
Cache-Control: no-cache
Pragma: no-cache
User-Agent: Java/1.5.0_11
Host: devapps.acehardware-acenet.com:8888
Connection: keep-alive
Transfer-Encoding: chunked

How can I disable chunking?

Reply via email to