SOAP Definition Editor

soap_definition_editor

Purpose

The SOAP Definition Editor allows you to edit SOAP web service definition files (.soap) that contain data downloaded from SOAP Web Service Definition Language (WSDL) URLs.

How to Open

Use the Add Web Service Dialog to create a new SOAP definition (.soap) file.  The definition file will be opened in a SOAP Editor in the Content View.

Or, you can double-click on an existing .soap file in the Test Files View explorer window.  The definition file will be opened in a SOAP Editor in the Content View.  The SOAP Toolbar will also open.

Invoke

soap_definition_editor_invoke

The invoke tab lets you visually choose a specific SOAP operation and execute it. It has the following sections:

Request / Response

This tab displays the raw SOAP XML request and response. When a SOAP operation fails, this is useful when debugging since it lets you see the raw data being sent to the web service:

soap_definition_editor_request_response

Typically you will want to view this information in either Raw or XML modes since SOAP doesn't support JSON as a serialization format.

soap_definition_editor_request_response2

Response

The HTTP Response in SOAP XML format is formatted and displayed in the bottom section:

soap_definition_editor_response_body

This displays the output from the last web service request. It has several tabs:

Response Header

Displays a list of the HTTP response headers (name and value). If the request received a 200 OK code back, it's displayed in green, if it receives an error code back, it's displayed in red.

soap_definition_editor_response_headers

Response Body

SOAP Script Steps

toolbar-soap-scriptsteps

The Script Steps tab lets you see the list of recorded SOAP operations and use them to create your test script in the main test file.

Each of the steps displayed in the script box will contain the name of the SOAP operation along with the specified parameters in JSON format. Steps displayed in bold with an asterisk also have a verification point recorded. That means when the script is generated, it will include Tester.Assert functions to verify the results.

Operation Explorer

soap_definition_editor_explorer

This section lets you see all of the SOAP web service endpoints in the current WSDL file and view the individual operations.

See Also