Forum Discussion

RJanecek's avatar
RJanecek
Regular Contributor
14 years ago

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

  • kormbrek's avatar
    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.

  • SmartBear_Suppo's avatar
    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