views:

247

answers:

1

Hi, 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

Anyone know how to get IIS to accept chunked input for a POST?

Thanks

A: 

Chunked encoding should be enabled by default. You can check your setting with:

C:\Inetpub\AdminScripts>cscript adsutil.vbs get /W3SVC/AspEnableChunkedEncoding

The 404 makes me wonder if it's really a problem with the chunked encoding. Did you triple-check the URL?

Jonas Elfström
I've been through the metabase viewer and AspEnableChunkedEncoding is enabled (and not disabled anywhere).Do you have experience that AspEnableChunkedEncoding affects POSTed uploads as well as downloads? The docs don't say anything about chunked POSTs.It's not a problem with the URL, a smaller request succeeeds.Thanks.
Yes I have but only with type="FILE" but that's still a HTTP POST. Anything in the eventlog?
Jonas Elfström