You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Jim Talbut <jt...@spudsoft.co.uk> on 2010/02/10 15:56:31 UTC

Trying to use a chunked POST request against an IIS web service

Hi,

I don't think this is a CXF problem, but it might be, or someone else  
here might have experienced it and be able to help me out.
I'm using a CXF client to communicate with a .net web service running  
on IIS 6. This request (anonymised):

POST /EngineWebService_v1/EngineWebService_v1.asmx HTTP/1.1
Content-Type: text/xml; charset=UTF-8
SOAPAction: "http://.../Report"
Accept: */*
User-Agent: Apache CXF 2.2.5
Cache-Control: no-cache
Pragma: no-cache
Host: uat9.gtios.net
Connection: keep-alive
Transfer-Encoding: chunked

followed by 7 chunks of 4089 bytes and one of 369 bytes, generates the  
following output after the first chunk has been sent:

HTTP/1.1 404 Not Found
Content-Length: 103
Date: Wed, 10 Feb 2010 13:00:08 GMT
Connection: Keep-Alive
Content-Type: text/html

AspEnableChunkedEncoding is enabled and a smaller request succeeds, so  
it's not a real 404.
Anyone else found this problem and got a workaround?

Thanks

Jim

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


Re: Trying to use a chunked POST request against an IIS web service

Posted by Daniel Kulp <dk...@apache.org>.
Honestly, you may just need to turn off chunking.   When you say "smaller 
request succeeds", do you mean under 4096?   If so, we automatically don't 
chunk for messages that small and just send a content-length header.

Dan


On Wed February 10 2010 9:56:31 am Jim Talbut wrote:
> Hi,
> 
> I don't think this is a CXF problem, but it might be, or someone else
> here might have experienced it and be able to help me out.
> I'm using a CXF client to communicate with a .net web service running
> on IIS 6. This request (anonymised):
> 
> POST /EngineWebService_v1/EngineWebService_v1.asmx HTTP/1.1
> Content-Type: text/xml; charset=UTF-8
> SOAPAction: "http://.../Report"
> Accept: */*
> User-Agent: Apache CXF 2.2.5
> Cache-Control: no-cache
> Pragma: no-cache
> Host: uat9.gtios.net
> Connection: keep-alive
> Transfer-Encoding: chunked
> 
> followed by 7 chunks of 4089 bytes and one of 369 bytes, generates the
> following output after the first chunk has been sent:
> 
> HTTP/1.1 404 Not Found
> Content-Length: 103
> Date: Wed, 10 Feb 2010 13:00:08 GMT
> Connection: Keep-Alive
> Content-Type: text/html
> 
> AspEnableChunkedEncoding is enabled and a smaller request succeeds, so
> it's not a real 404.
> Anyone else found this problem and got a workaround?
> 
> Thanks
> 
> Jim
> 
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.

-- 
Daniel Kulp
dkulp@apache.org
http://www.dankulp.com/blog