Forum Discussion

Anish's avatar
Anish
Occasional Contributor
12 years ago

Retrieving XML from a DB and using it as a response for Mock

Hi,

I have a REST Mock service wherein i query the database to retrieve a XML file for a particular request. I want to use this XML file as a response for the same request.
Earlier i was using mockRunner.ReturnFile() to return a response XML which was stored in the local path. But now i have stored the response XML's in a table of DB. How can i render the XML response for the request using the XML from DB.Can you please let me know how can i achieve this?

Thanks,
Anish