Ask a Question

mock response

RJanecek
Regular Contributor

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 ?
2 REPLIES 2
SmartBear_Suppo
SmartBear Alumni (Retired)

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. ⬇️⬇️⬇️
kormbrek
Occasional Visitor

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.

cancel
Showing results for 
Search instead for 
Did you mean: