Page 4 of 5
3) Invoking a MockService
- First we must start the MockService. Click the Start button in the MockService editor,
, this will start the service on the configured port and path. 
To the Top Right of the Editor you should see that it's running, and the port it's responding on. The play Button is greyed out and if you would like to stop the MockService, just click the stop button. - In the MockResponse editor, Click the Button Create Request.

- This will prompt you to to open one of the existing requests for its operation in your project.

- You will also need to give it a name

- When you open the request, soapUI will automatically change its endpoint to the endpoint of the locally running MockService instead of the endpoint that the WSDL is using. Submit the opened request by clicking the Run Button.

As you can see the MockService returned the values we entered earlier as the response. - If you switch back to the MockResponse editor and select its Incoming Request view, you should be able to see the request that was posted to the MockService and handled by the MockOperation.

Congratulations! This was your first MockService. Admittedly it was quite simple, so lets make it a bit more sophisticated. But first, feel free to modify the created MockResponse content and re-submit the request to see that your changes are instantly available, there is no need to restart the MockService. Done? Let's move on and finish by customizing the MockResponse.





