mock response
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-26-2010
10:52 PM
09-26-2010
10:52 PM
mock response
Hi,
I created mock response in my testsuite, but I have some problem with mock response. Then I looked in mock response raw view and there are some undefined character as you can see: http://img690.imageshack.us/f/mock.png/
What is wrong ?
I created mock response in my testsuite, but I have some problem with mock response. Then I looked in mock response raw view and there are some undefined character as you can see: http://img690.imageshack.us/f/mock.png/
What is wrong ?
2 REPLIES 2
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2010
09:32 AM
10-05-2010
09:32 AM
Hi!
The mockresponse has been zipped before sending, probably because the client allowed gzip encoding.. try disabling the compression of requests and response in the http settings to see if that helps you.
regards!
/Ole
eviware.com
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
The mockresponse has been zipped before sending, probably because the client allowed gzip encoding.. try disabling the compression of requests and response in the http settings to see if that helps you.
regards!
/Ole
eviware.com
Did my reply answer your question? Give Kudos or Accept it as a Solution to help others. ⬇️⬇️⬇️
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-22-2016
06:04 AM
03-22-2016
06:04 AM
I was able to resolve this on a per-request basis by adding this script to the mock response:
headers = mockRequest.requestHeaders; headers.remove("Accept-Encoding");
Removing the Accept-Encoding header forces SoapUI to use identity encoding (uncompressed).
I was unable to resolve this through the preferences as suggested.
Answering this old post in case someone else runs into this issue.
For me, it was ServiceMix(Camel) that was sending Accept-Encoding: gzip,deflate but could not handle a compressed response and complained about an illegal unicode character.
