soapUI mock services in action
In the following sections, we will move forward with our sample MockService with trying out the various options which we discussed previously. First, we will look into the simplest use case, where we use a static MockResponse.
Static responses – the basic scenario
Creating a static MockResponse in soapUI is pretty straightforward. You may question whether the static responses are used in real-world scenarios. Though static MockResponses are simple they are of course very useful in a lot of enterprise integration test scenarios.
Service chaining
In a typical service-oriented solution, the messages can be transmitted through multiple hops before reaching the destination. We cannot always expect single client to service message exchange. Service chaining is a concept where the response of one service acts as an input for another service. When testing such a service chaining scenario, static MockResponses can be used if some of the services are not completely available...