Soap-UI Mock Service(REST) not working after adding custom headers to response and creating a war file
<p>I have added following custom headers to the response of a rest mock service in SOAP UI,</p>

<ul>
<li>Transfer-Encoding >>>> chunked </li>
<li>Content-Type >>>> text/plain;charset=iso-8859-1</li>
</ul>

<p>When I run the mock service from soapUI and test it by sending a request, I receive a response without any trouble. </p>

<p>But when I export a war file, then deploy the .war in tomcat 7 application server and try to test the mock service by sending the same request, I get the following message,</p>

<blockquote>
  <p>Could not get any response This seems to be like an error connecting
  to
  <a href="http://localhost:8585/my-mocks-rest2/my-mock-service/" rel="nofollow">http://localhost:8585/my-mocks-rest2/my-mock-service/</a>.</p>
  
  <p>Why this might have happened: The server couldn't send a response:</p>
  
  <p>Ensure that the backend is working properly SSL connections are being
  blocked: Fix this by importing SSL certificates in Chrome Cookies not
  being sent: Use the Postman Interceptor extension Request timeout:
  Change request timeout in Settings > General</p>
</blockquote>

<p><a href="https://drive.google.com/open?id=0B8IL7Mp42fnHcGh1QUE1ZjBEV00" rel="nofollow">Screenshot of POSTMan response</a></p>

<p><strong>Tomcat Log / catalina.log</strong></p>

<pre><code>31-May-2016 14:41:11.638 INFO [localhost-startStop-13] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive C:\repo\apache-tomcat-8.0.24\webapps\newco-mocks-rest8.war
31-May-2016 14:41:16.204 INFO [localhost-startStop-13] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive C:\repo\apache-tomcat-8.0.24\webapps\newco-mocks-rest8.war has finished in 4,566 ms
31-May-2016 14:41:35.890 INFO [http-apr-8585-exec-39] com.eviware.soapui.mockaswar.MockAsWarServlet.initMockServiceParameters Init listeners
31-May-2016 14:41:35.892 INFO [http-apr-8585-exec-39] com.eviware.soapui.mockaswar.MockAsWarServlet.initMockServiceParameters Listeners not set! Reason : null
31-May-2016 14:41:35.894 INFO [http-apr-8585-exec-39] com.eviware.soapui.mockaswar.MockAsWarServlet.initMockServiceParameters Init actions
31-May-2016 14:41:35.895 INFO [http-apr-8585-exec-39] null.null Actions not set! Reason : null
31-May-2016 14:41:35.899 INFO [http-apr-8585-exec-39] null.null SoapUI core already exists, reusing existing one
31-May-2016 14:41:35.900 INFO [http-apr-8585-exec-39] null.null WebUI ENABLED
31-May-2016 14:41:35.906 INFO [http-apr-8585-exec-39] null.null Loading project
31-May-2016 14:41:36.233 INFO [http-apr-8585-exec-39] com.eviware.soapui.mockaswar.MockAsWarServlet.init Starting REST mock service [ISL023-srv-requestPaymentRefundMockService]
</code></pre>

<p><strong>localhost-access.log</strong></p>

<pre><code>127.0.0.1 - - [31/May/2016:14:49:05 +0530] "PUT /newco-mocks-rest8/ISL023-srv-request-payment-refund/ HTTP/1.1" 200 267
</code></pre>