Anish
12 years agoOccasional Contributor
Adding XML to MockService war
Hi,
I have a Rest Mockservice in which i a particluar xml (stored in docroot folder of project) is rendered as response for a request. Similarly another xml is rendered as response for different request. The response xml path and other groovy scripting is done in the On Request Script of the request.This works completely fine in SOAPUI. But when i deploy this project as a war and access the same from localhost, i get a response as given below,
<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>
Is there any way to add the response xmls to the war while being generated? If so, do i need to change the path value of the response xmls? If i change the value of response xml , then it would not work in soapui itself. Am using soapui 4.5.1
Please suggest how to fix this.
Regards,
Anish
I have a Rest Mockservice in which i a particluar xml (stored in docroot folder of project) is rendered as response for a request. Similarly another xml is rendered as response for different request. The response xml path and other groovy scripting is done in the On Request Script of the request.This works completely fine in SOAPUI. But when i deploy this project as a war and access the same from localhost, i get a response as given below,
<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>
Is there any way to add the response xmls to the war while being generated? If so, do i need to change the path value of the response xmls? If i change the value of response xml , then it would not work in soapui itself. Am using soapui 4.5.1
Please suggest how to fix this.
Regards,
Anish