Anish
12 years agoOccasional Contributor
Externalizing Response XML for Mock Service WAR
Hi,
I have a REST Mock service in which i return a xml (stored in local disk) file as response for a particular request to the mock service. But when i deploy this project as a war and access the localhost to send the reqest, i get a html response
<html>
<head>
<title>soapUI MockServices Log for project [HandCraftedEnstratiusSSL]</title>
</head>
<frameset rows="40%,40%,*">
<frame src="master"/>
<frame name="detail" src="detail"/>
<frame src="log"/>
</frameset>
</html>
The response xml is not added to the war during war creation. Am using groovy script in which the return file path is mentioned. How can i render the xml file as response to the request when trying from local host?
Regards,
Anish
I have a REST Mock service in which i return a xml (stored in local disk) file as response for a particular request to the mock service. But when i deploy this project as a war and access the localhost to send the reqest, i get a html response
<html>
<head>
<title>soapUI MockServices Log for project [HandCraftedEnstratiusSSL]</title>
</head>
<frameset rows="40%,40%,*">
<frame src="master"/>
<frame name="detail" src="detail"/>
<frame src="log"/>
</frameset>
</html>
The response xml is not added to the war during war creation. Am using groovy script in which the return file path is mentioned. How can i render the xml file as response to the request when trying from local host?
Regards,
Anish