在WebSphere Application Server 8.5中禁用JAX-WS Client的分块传输编码 [英] Disable chunked transfer-encoding for JAX-WS Client in WebSphere Application Server 8.5
问题描述
在运行于IBM WebSphere Application Server(WAS)V8.5.5.11之上的Web应用程序中,有一个JAX-WS客户端(使用WAS内置JAX-WS组件),该客户端调用外部Web服务. .
In a web application that runs on top of IBM WebSphere Application Server (WAS) V8.5.5.11, there is a JAX-WS client piece (using WAS built-in JAX-WS component) that calls an external web service.
对于HTTP正文大于32 KB的任何Web服务调用,WAS将使用分块的传输编码.不幸的是,外部Web服务无法处理分块的传输编码,并且会出错.
For any web service call with an HTTP body larger than 32 KB, WAS will use chunked transfer-encoding. Unfortunately, the external web service cannot handle chunked transfer encoding, and will error out.
如何在WAS JAX-WS客户端代码中禁用分块传输编码?
How do I disable chunked transfer-encoding within WAS JAX-WS client code?
推荐答案
我找不到以编程方式禁用WAS 8.5.5.x内置JAX-WS的分块传输编码的方法.但是我确实找到了一种通过WAS管理控制台"禁用它的方法.
I couldn't find a way to programmatically disable chunked transfer encoding for the built-in JAX-WS of WAS 8.5.5.x. But I did find a way to disable it through WAS "Administrative Console".
基本上,您需要复制"WSHTTPS默认"策略集,并修改"HTTP传输"策略以取消选中启用分块传输编码"框.然后将此自定义策略集分配给您的服务客户端.
Basically, you need to make a copy of "WSHTTPS default" policy set, and modify the "HTTP transport" policy to uncheck the box for "Enable chunked transfer encoding". Then assign this custom policy set to your service client.
这篇关于在WebSphere Application Server 8.5中禁用JAX-WS Client的分块传输编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!