在AXIS2中关闭HTTP分块时出现问题 [英] Problem turning HTTP Chunking off in AXIS2

查看:168
本文介绍了在AXIS2中关闭HTTP分块时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个客户端向我发送没有HTTP分块的请求(它们使用content-length).当我的服务器响应时,启用了分块,并且客户端无法处理-即使他们应该能够像使用HTTP 1.1一样....

I have a client sending me requests without HTTP chunking (they use content-length). When my server responds, chunking is enabled, and the client can't handle this - even though they should be able to as they are using HTTP 1.1.....

我试图通过从axis2配置文件(axis2.xml)中删除下面的条目来禁用分块,但响应仍在返回分块.

I have tried to disable chunking by removing the entry below from the axis2 config file (axis2.xml) but the response is still going back chunked.

分块

所以问题是,是否还有其他地方使分块功能超过了axis2设置?也许是在tomcat环境中?

So the question is, is there somewhere else that the chunking is being enabled that is over-riding the axis2 setting? In tomcat setting perhaps?

Web服务器详细信息-Tomcat 6.0.16,Axis2 2.1.3

Webserver details - tomcat 6.0.16, axis2 2.1.3

谢谢 迈克

推荐答案

您可以通过以下方式以编程方式禁用分块:

you can disable Chunking programatically as follows:

Options options = new Options(); [...] options.setProperty(HTTPConstants.CHUNKED,"false");

Options options = new Options(); [...] options.setProperty(HTTPConstants.CHUNKED, "false");

来源: http://jcesarperez.blogspot.com/2008/10/resolviendo-problemas-de.html

这篇关于在AXIS2中关闭HTTP分块时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆