WSDL Refactoring Download Trial - Free 14 day evaluation

Working with Messages

PDF Print E-mail
User Rating:  / 45
Rate this article: PoorBest 

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.

Request Messages

  • XML – a standard text view of the underlying XML message, right-click in the editor to get a popup-menu with applicable actions:

    wsd-request-xml-editor-popup
    The Validate option validates the current message against the underlying schema and displays a list of validation errors at the bottom if found:

    wsdl-validate-request-message
    (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:

    wsdl-request-raw-editor
    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:
    wsdl-request-http-log-for-raw-editor
  • Outline Editor

    Shows a tree-view of the underlying XML message:

    wsdl-request-outline-editor

    (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.

    Form Editor

    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:

    wsdl-request-form-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:

    wsdl-request-all-types-in-form-editor

    (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.

    Inserting Data

    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:

    wsdl-request-get-data-in-form-editor

    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:

    wsdl-request-inserted-property-expansion-into-form-editor

    Response Messages

    The Response message has corresponding Views available:

    • XML – shows the XML content of the response message:

      wsdl-response-xml-view

      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:

      wsdl-response-raw-view
    • Outline (soapUI Pro only): Shows a read-only tree-view of the response message:

      wsdl-response-outline-view
    • Overview (soapUI Pro only): Shows a user-friendly rendering of the response:

      wsdl-response-overview-view

      URLs in response message fields will be clickable and opened in an external browser.