Steps to Reproduce:
1) Create a sample WSDL in eclipse
2) Import this wsdl into SOAPUI project.
3) Create the mock service in SOAPUI for this WSDL.
4) Start the mock service with the HTTP Settings of SOAPUI-> Response Compression: checkbox checked
5) Send the request to the ws:proxy service deployed in mule ide.
6) You can see the "Accept-Encoding: gzip,deflate\r\n" coming in the request from SOAPUI.
7) Below is the logs from Mule, check the response
DEBUG 2011-01-21 13:17:21,655 http://connector.http.0.receiver.2 httpclient.wire.header: << "POST /ws/SampleService HTTP/1.0\r\n"
DEBUG 2011-01-21 13:17:21,657 http://connector.http.0.receiver.2 httpclient.wire.header: << "Accept-Encoding: gzip,deflate\r\n"
DEBUG 2011-01-21 13:17:21,657 http://connector.http.0.receiver.2 httpclient.wire.header: << "Content-Type: text/xml;charset=UTF-8\r\n"
DEBUG 2011-01-21 13:17:21,659 http://connector.http.0.receiver.2 httpclient.wire.header: << "SOAPAction: "http://www.xxx.com/ws/SampleService/NewOperation"\r\n"
DEBUG 2011-01-21 13:17:21,659 http://connector.http.0.receiver.2 httpclient.wire.header: << "User-Agent: Jakarta Commons-HttpClient/3.1\r\n"
DEBUG 2011-01-21 13:17:21,659 http://connector.http.0.receiver.2 httpclient.wire.header: << "Host: localhost:8080\r\n"
DEBUG 2011-01-21 13:17:21,660 http://connector.http.0.receiver.2 httpclient.wire.header: << "Content-Length: 278\r\n"
DEBUG 2011-01-21 13:17:21,660 http://connector.http.0.receiver.2 httpclient.wire.header: << "\r\n"
DEBUG 2011-01-21 13:17:21,767 http://connector.http.0.receiver.2 httpclient.wire.header: >> "POST /mockSampleServiceSOAP HTTP/1.0\r\n"
DEBUG 2011-01-21 13:17:21,777 http://connector.http.0.receiver.2 httpclient.wire.header: >> "X-MULE_ENDPOINT: http://ltw7-eng-sathwik:8088/mockSampleServiceSOAP\r\n"
DEBUG 2011-01-21 13:17:21,777 http://connector.http.0.receiver.2 httpclient.wire.header: >> "Accept-Encoding: gzip,deflate\r\n"
DEBUG 2011-01-21 13:17:21,777 http://connector.http.0.receiver.2 httpclient.wire.header: >> "Content-Type: text/xml;charset=UTF-8\r\n"
DEBUG 2011-01-21 13:17:21,777 http://connector.http.0.receiver.2 httpclient.wire.header: >> "SOAPAction: "http://www.xxx.com/ws/SampleService/NewOperation"\r\n"
DEBUG 2011-01-21 13:17:21,778 http://connector.http.0.receiver.2 httpclient.wire.header: >> "Keep-Alive: false\r\n"
DEBUG 2011-01-21 13:17:21,778 http://connector.http.0.receiver.2 httpclient.wire.header: >> "Content-Length: 278\r\n"
DEBUG 2011-01-21 13:17:21,778 http://connector.http.0.receiver.2 httpclient.wire.header: >> "X-MULE_ENCODING: UTF-8\r\n"
DEBUG 2011-01-21 13:17:21,778 http://connector.http.0.receiver.2 httpclient.wire.header: >> "X-MULE_ORIGINATING_ENDPOINT: endpoint.http.localhost.8080.ws.SampleService\r\n"
DEBUG 2011-01-21 13:17:21,778 http://connector.http.0.receiver.2 httpclient.wire.header: >> "User-Agent: Jakarta Commons-HttpClient/3.1\r\n"
DEBUG 2011-01-21 13:17:21,778 http://connector.http.0.receiver.2 httpclient.wire.header: >> "X-MULE_REMOTE_CLIENT_ADDRESS: /127.0.0.1:25540\r\n"
DEBUG 2011-01-21 13:17:21,778 http://connector.http.0.receiver.2 httpclient.wire.header: >> "Host: ltw7-eng-sathwik:8088\r\n"
DEBUG 2011-01-21 13:17:21,778 http://connector.http.0.receiver.2 httpclient.wire.header: >> "Cookie: $Version=0; MULE_SESSION=rO0ABXNyACNvcmcubXVsZS5zZXNzaW9uLkRlZmF1bHRNdWxlU2Vzc2lvbi7rdtEW7GGKAwAEWgAFdmFsaWRMAAJpZHQAEkxqYXZhL2xhbmcvU3RyaW5nO0wACnByb3BlcnRpZXN0AA9MamF2YS91dGlsL01hcDtMAA9zZWN1cml0eUNvbnRleHR0ACdMb3JnL211bGUvYXBpL3NlY3VyaXR5L1NlY3VyaXR5Q29udGV4dDt4cAF0ACRhZGRmZTk4NS0yNTMyLTExZTAtYTM1MS04MTQ1M2FhNWRlZGVzcgAlamF2YS51dGlsLkNvbGxlY3Rpb25zJFN5bmNocm9uaXplZE1hcBtz+QlLSzl7AwACTAABbXEAfgACTAAFbXV0ZXh0ABJMamF2YS9sYW5nL09iamVjdDt4cHNyACRvcmcubXVsZS51dGlsLkNhc2VJbnNlbnNpdGl2ZUhhc2hNYXCd0dnvZ0XOAAMAAHhwdww/QAAAAAAAEAAAAAB4cQB+AAh4cHQADlNhbXBsZVNlcnZpY2UxeA==\r\n"
DEBUG 2011-01-21 13:17:21,779 http://connector.http.0.receiver.2 httpclient.wire.header: >> "\r\n"
DEBUG 2011-01-21 13:17:21,779 http://connector.http.0.receiver.2 httpclient.wire.content: >> "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sam="http://www.xxx.com/ws/SampleService/">\n"
DEBUG 2011-01-21 13:17:21,779 http://connector.http.0.receiver.2 httpclient.wire.content: >> " <soapenv:Header/>\n"
DEBUG 2011-01-21 13:17:21,779 http://connector.http.0.receiver.2 httpclient.wire.content: >> " <soapenv:Body>\n"
DEBUG 2011-01-21 13:17:21,779 http://connector.http.0.receiver.2 httpclient.wire.content: >> " <sam:NewOperation>\n"
DEBUG 2011-01-21 13:17:21,779 http://connector.http.0.receiver.2 httpclient.wire.content: >> " <in>hi</in>\n"
DEBUG 2011-01-21 13:17:21,779 http://connector.http.0.receiver.2 httpclient.wire.content: >> " </sam:NewOperation>\n"
DEBUG 2011-01-21 13:17:21,779 http://connector.http.0.receiver.2 httpclient.wire.content: >> " </soapenv:Body>\n"
DEBUG 2011-01-21 13:17:21,779 http://connector.http.0.receiver.2 httpclient.wire.content: >> "</soapenv:Envelope>"
DEBUG 2011-01-21 13:17:21,786 http://connector.http.0.receiver.2 httpclient.wire.header: << "HTTP/1.1 200 OK\r\n"
DEBUG 2011-01-21 13:17:21,786 http://connector.http.0.receiver.2 httpclient.wire.header: << "HTTP/1.1 200 OK\r\n"
DEBUG 2011-01-21 13:17:21,787 http://connector.http.0.receiver.2 httpclient.wire.header: << "Content-Type: text/xml; charset=utf-8\r\n"
DEBUG 2011-01-21 13:17:21,788 http://connector.http.0.receiver.2 httpclient.wire.header: << "Content-Encoding: gzip\r\n"
DEBUG 2011-01-21 13:17:21,788 http://connector.http.0.receiver.2 httpclient.wire.header: << "Server: Jetty(6.1.x)\r\n"
DEBUG 2011-01-21 13:17:21,788 http://connector.http.0.receiver.2 httpclient.wire.header: << "\r\n"
DEBUG 2011-01-21 13:17:21,799 http://connector.http.0.receiver.2 httpclient.wire.content: << "0x1f0x8b0x80x00x00x00x00x00x00x0}0x90A\n"
DEBUG 2011-01-21 13:17:21,799 http://connector.http.0.receiver.2 httpclient.wire.content: << "0xc200x10E0xf70x9e"0xf40x00x99}0x88]0x8BW\n"
DEBUG 2011-01-21 13:17:21,799 http://connector.http.0.receiver.2 httpclient.wire.content: << "0xf60x4c;0xd8B0x920x9Il0xec0xedmK0xa30xb8q0xf70xe70xff0xff0x98atd0xf40xe4&uv0x130x190xf6$^0xd60xb80xa8v0xfbX\r)y0x50x100xbb0x81,F0xb90xa4k$9<`0x15@;0x7U!0xd1~0xa80x9c0xb30xe4;{0x9ce0xc70x16r0x840x160xad70xd4R0x980xc6na0xea0x830x10B0x970x1b0x1a0xc20x9e0x20xfc0x9a'0xee0xe70xcd0xd9L0xb40xeaB0xf90xea)`0x1a0xd90xdd(zv0x91Ja0xed0xf030xd5\r0x190xc30x1aVYP0xf80xcbj0xf80xdd0xf70x9d0xcbc0xea70xbaB0xf70xdb+0x10x00x0"
8) Now, change the HTTP Settings of SOAPUI-> Response Compression: checkbox un-checked
9) Resend the request from soapui.The "Accept-Encoding: gzip,deflate\r\n" header is not part of the request now.
10) The logs from Mule are as follows, the response is perfect now.
21/Jan/2011 13:35:58 - << "POST /ws/SampleService HTTP/1.0\r\n"
21/Jan/2011 13:35:58 - << "Content-Type: text/xml;charset=UTF-8\r\n"
21/Jan/2011 13:35:58 - << "SOAPAction: "http://www.xxx.com/ws/SampleService/NewOperation"\r\n"
21/Jan/2011 13:35:58 - << "User-Agent: Jakarta Commons-HttpClient/3.1\r\n"
21/Jan/2011 13:35:58 - << "Host: localhost:8080\r\n"
21/Jan/2011 13:35:58 - << "Content-Length: 278\r\n"
21/Jan/2011 13:35:58 - << "\r\n"
21/Jan/2011 13:35:58 - >> "POST /mockSampleServiceSOAP HTTP/1.0\r\n"
21/Jan/2011 13:35:58 - >> "X-MULE_ENDPOINT: http://ltw7-eng-sathwik:8088/mockSampleServiceSOAP\r\n"
21/Jan/2011 13:35:58 - >> "Content-Type: text/xml;charset=UTF-8\r\n"
21/Jan/2011 13:35:58 - >> "SOAPAction: "http://www.xxx.com/ws/SampleService/NewOperation"\r\n"
21/Jan/2011 13:35:58 - >> "Keep-Alive: false\r\n"
21/Jan/2011 13:35:58 - >> "Content-Length: 278\r\n"
21/Jan/2011 13:35:58 - >> "X-MULE_ENCODING: UTF-8\r\n"
21/Jan/2011 13:35:58 - >> "X-MULE_ORIGINATING_ENDPOINT: endpoint.http.localhost.8080.ws.SampleService\r\n"
21/Jan/2011 13:35:58 - >> "User-Agent: Jakarta Commons-HttpClient/3.1\r\n"
21/Jan/2011 13:35:58 - >> "X-MULE_REMOTE_CLIENT_ADDRESS: /127.0.0.1:17455\r\n"
21/Jan/2011 13:35:58 - >> "Host: ltw7-eng-sathwik:8088\r\n"
21/Jan/2011 13:35:58 - >> "Cookie: $Version=0; MULE_SESSION=rO0ABXNyACNvcmcubXVsZS5zZXNzaW9uLkRlZmF1bHRNdWxlU2Vzc2lvbi7rdtEW7GGKAwAEWgAFdmFsaWRMAAJpZHQAEkxqYXZhL2xhbmcvU3RyaW5nO0wACnByb3BlcnRpZXN0AA9MamF2YS91dGlsL01hcDtMAA9zZWN1cml0eUNvbnRleHR0ACdMb3JnL211bGUvYXBpL3NlY3VyaXR5L1NlY3VyaXR5Q29udGV4dDt4cAF0ACQ0N2Q1ZTc1Zi0yNTM1LTExZTAtODYwOC1kNzUwY2ZmNjZiNWRzcgAlamF2YS51dGlsLkNvbGxlY3Rpb25zJFN5bmNocm9uaXplZE1hcBtz+QlLSzl7AwACTAABbXEAfgACTAAFbXV0ZXh0ABJMamF2YS9sYW5nL09iamVjdDt4cHNyACRvcmcubXVsZS51dGlsLkNhc2VJbnNlbnNpdGl2ZUhhc2hNYXCd0dnvZ0XOAAMAAHhwdww/QAAAAAAAEAAAAAB4cQB+AAh4cHQADlNhbXBsZVNlcnZpY2UxeA==\r\n"
21/Jan/2011 13:35:58 - >> "\r\n"
21/Jan/2011 13:35:58 - >> "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sam="http://www.xxx.com/ws/SampleService/">\n"
21/Jan/2011 13:35:58 - >> " <soapenv:Header/>\n"
21/Jan/2011 13:35:58 - >> " <soapenv:Body>\n"
21/Jan/2011 13:35:58 - >> " <sam:NewOperation>\n"
21/Jan/2011 13:35:58 - >> " <in>hi</in>\n"
21/Jan/2011 13:35:58 - >> " </sam:NewOperation>\n"
21/Jan/2011 13:35:58 - >> " </soapenv:Body>\n"
21/Jan/2011 13:35:58 - >> "</soapenv:Envelope>"
21/Jan/2011 13:35:58 - << "HTTP/1.1 200 OK\r\n"
21/Jan/2011 13:35:58 - << "HTTP/1.1 200 OK\r\n"
21/Jan/2011 13:35:58 - << "Content-Type: text/xml; charset=utf-8\r\n"
21/Jan/2011 13:35:58 - << "Server: Jetty(6.1.x)\r\n"
21/Jan/2011 13:35:58 - << "\r\n"
21/Jan/2011 13:35:59 - << "<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sam="http://www.xxx.com/ws/SampleService/">\n"
21/Jan/2011 13:35:59 - << " <soapenv:Header/>\n"
21/Jan/2011 13:35:59 - << " <soapenv:Body>\n"
21/Jan/2011 13:35:59 - << " <sam:NewOperationResponse>\n"
21/Jan/2011 13:35:59 - << " <out>Hello</out>\n"
21/Jan/2011 13:35:59 - << " </sam:NewOperationResponse>\n"
21/Jan/2011 13:35:59 - << " </soapenv:Body>\n"
21/Jan/2011 13:35:59 - << "</soapenv:Envelope>"
This is my forum entry,
http://forums.mulesoft.org/thread.jspa?threadID=4586&tstart=0
regards,
sathwik