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
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 Tab of the Ribbon will also open.
The invoke tab lets you visually choose a specific SOAP operation and execute it. It has the following sections:
oInput - You can expand the various SOAP operations and see the input headers and body parameters that need to be sent to the function. You can click on each parameter and supply a value on the right-hand pane.
oOutput - You can expand the various SOAP operations and see the output headers and result that should be returned from the operation (if successful). You can click on each header or the body and see the type of data returned.
oInvoke - Once you have supplied the appropriate values, click the Invoke button send the SOAP request and get the data back from the request.
oRecord - Clicking this button after a successful invoke of the operation will add it to the list of recorded test scripts shown in the SOAP ribbon.
oVerify - Clicking this button after the Record will add a Tester.Assert(...) verification checkpoint to the recorded test script. This will make Rapise automatically verify all of the returned values.
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:
Typically you will want to view this information in either Raw or XML modes since SOAP doesn't support JSON as a serialization format.
The HTTP Response in SOAP XML format is formatted and displayed:
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.
oRaw - Displays the raw text of the HTTP response body received from the server.
oXML - If the received body content is identified as XML, this tab displays nicely formatted XML that is easier to read than the raw response body.
This section lets you see all of the SOAP web service endpoints in the current WSDL file and view the individual operations.
oFor more info on SOAP Web Services, see SOAP Web Services.
oFor a tutorial on creating a SOAP web service test, see the Web Services SOAP Tutorial.