Chapter 3. Developing and Deploying Dynamic REST and SOAP Mocks

In this chapter, we will cover the following topics:

  • Selecting mock responses using Groovy
  • Developing dynamic database-driven SOAP mocks
  • Developing dynamic database-driven REST mocks
  • Building mock responses dynamically
  • Building and deploying mocks as WAR files

Introduction

SoapUI has a very useful and easy-to-use REST and SOAP mock service functionality. This chapter looks to build on standard static response mocks by using Groovy scripting and database backends to provide dynamic responses that can also store and retrieve request data.

In terms of web service mocking as a strategy, the SoapUI online docs (see http://www.soapui.org/soap-mocking/service-mocking-overview.html) mention the pros ...

Get SoapUI Cookbook 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.