Mock Response Editor

NOTE: This page contains information for SoapUI Pro that has been replaced with Ready! API. To use outline editor, feel free to download a SoapUI NG Pro trial from our website.

MockResponse Editor

The MockResponse editor lets you configure the MockResponse in detail.

MockResponse Editor

The MockResponse Editor contains the configurable information that will be returned for the request: A HTTP Status Code, any custom Header information to include, and the Response Body. The scripting tabs for script, table and xml are at the bottom.

MockResponse Editor Headers

The response can be configured to include custom headers.

Editor

# Icon Item Description
01 Add Add header Create new custom header
02 Add Remove header Delete new custom header

Header

The header column shows the header type.

Value

The header value is displayed in the value column.

Property expansions

It is possible to use Property expansions in the custom header value.

MockResponse Body

The MockResponse body is the main part of the response and can be in a number of format.

Raw Editor

Content/Media Type

The Content/Media Type.

The field is editable, and you can enter (possibly making sure that the body content type matches your custom headers.

Raw Editor

The Raw Editor allows you to edit the response to provide the exact detailed response you need.

Raw Editor

Outline editor Pro Feature

In SoapUI Pro, the response body can be edited using an Outline Editor.

Raw Editor

MockResponse Editor Script

The MockRespsonse body is the main part of the response and can be in a number of format.

Script

More information

Read more about mock service scripting in the Creating Dynamic MockServices article.