Skip to content

Mock Response Editor

NOTE: This page contains information on standalone SoapUI Pro that has been replaced with ReadyAPI. To use outline editor, feel free to download a ReadyAPI 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

#IconItemDescription
01AddAdd headerCreate new custom header
02AddRemove headerDelete new custom 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 ReadyAPI, 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.