Problem transitioning HTTP to AXIS2

I have a client that sends me requests without HTTP chunking (they use content length). When my server responds, chunking is enabled and the client cannot handle it - although they should be able to, since they are using HTTP 1.1 .....

I tried to disable chunking by removing the entry below from the axis2 (axis2.xml) config file, but the response still falls back to chunked state.

fragmented

So the question is, is there somewhere else that the lock is on that exceeds the setting of axis2? Perhaps in tomcat setup?

Web server details - tomcat 6.0.16, axis2 2.1.3

Thanks Mike

0
axis2 chunked-encoding transfer-encoding


source to share


2 answers


you can turn off Chunking programmatically as follows:

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



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

+5


source to share


If you've created a stub for your web service, just do the following:



myStub._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED, false);

+2


source to share







All Articles
Loading...
X
Show
Funny
Dev
Pics