Create synchronous virtual service here and access it from anywhere. It could be REST or SOAP service. Just need to provide a sample input and output of the service in XML or JSON format.
Response of the virtual service are semi-static. Before sending the response, it can set the dynamic value for certain elements and attributes. It can be configured to send condition based response.
Click Here To Watch A Demo On It.