Creating a mock service

When we are developing a service orchestration where several services are implied, it will be a common scenario that we do not have access to the service in a developer environment, at least for the first stages of the development. Then, we will have to work the contract of the service and, if we are lucky, same sample responses. We can solve this situation, creating a mock service where we set the sample responses as the response of the service.

Thus, we can start developing our service by invoking a mock service of the real service until we are able to integrate with the real service. We can do that for both REST and SOAP services.

We can easily create the mock service by clicking on New SOAP MockService / New

Get WSO2 Developer’s Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.