There are several view to choose from when working with both SOAP Request and Response messages. Let's have a look at both in turn.
- XML – a standard text view of the underlying XML message, right-click in the editor to get a popup-menu with applicable actions:
The Validate option validates the current message against the underlying schema and displays a list of validation errors at the bottom if found:
(here line-numbers have been turned on in the editor)
- Raw – displays the actual bytes of the last sent message including http-headers, mime-attachments, etc:
Use this view to inspect the results of property-expansions, filters, etc. The contents here should be the same as in the HTTP log at the bottom of the main soapUI window:
- XML – shows the XML content of the response message: Here the right-click menu is more limited in options, but you can still edit the actual message to be able to work with related assertions and scripts.
- Raw – shows the raw bytes of the response message:
- Outline (soapUI Pro only): Shows a read-only tree-view of the response message:
- Overview (soapUI Pro only): Shows a user-friendly rendering of the response: URLs in response message fields will be clickable and opened in an external browser.
Shows a tree-view of the underlying XML message:
(The column to the right shows the schema type of the corresponding value)
Here you can edit values of existing elements / attributes but cannot add or remove existing nodes in the tree.
The Form Editor renders a user-friendly input form for the underlying request, making it substantially easier to enter content than in the XML editor:
The View-Type option on the top right allows removal of non-required elements or only those containing data which can be useful in a manual testing scenario where only certain fields are to be used.
Depending on the type of field, soapUI Pro renders different editors, including special editors for dates, times, byte-arrays, enumerations (as seen above), lists, etc.
The following screen-shot shows all available type-editors:
(the highlighted DateTime editor has been opened to specify a DateTime value)
Tip: Although the editor has support for reasonably complex XML Schemas, it does not support all possible XML Schema constructs.
All editable fields in the above editor views have a right-click menu with standard editor actions and a “Get Data” action which will automatically insert property-expansion for a selected property. For example if we want to use a project level “SubscriptionID” in the SubscriptionID field in a request to the Amazon Web Service, we can right-click in the corresponding Form editor field:
Here we select the “SubscriptionID” property defined at the project level in our project, when selecting ok we are prompted for an initial property value (if not set) and then get the following:
The Response message has corresponding Views available: