The default case contains the default response when no other criteria has been met. When multiple cases are defined, the default case is always the last one to be evaluated.
Contain cases send their response when the incoming call contains the specified XML message. Equal cases send their response when the incoming call matched the specified XML message.
The verification occurs if the message return object is a valid XML message. The verification is performed on both the name of the XML element and final return value of the element. Attributes are not checked.
Use the Form, Tree and Source views to edit the message content.
<ns1:responseElement xmlns:ns1="http://www.ibm.com/wbse"></ns1:responseElement>
<ns1:responseElement xmlns:ns1="http://www.ibm.com/wbse"></ns1:responseElement>
<ns1:responseElement xmlns:ns1="http://www.ibm.com/wbse"></ns1:responseElement>In this case, you can simplify the value of the expected XML data to:
<responseElement><responseElement>
This view provides an simple view of the elements of the call with their values. Use this view to quickly edit values in the form.
This view provides a hierarchical view of the elements of the call with their values, attributes, and the associated namespaces. You can use Add, Insert, Remove, Up, and Down to edit this list.
Click the namespace, attribute, or text filter buttons, depending on your requirements.
Click Allow only valid modifications to enable smart editing, based on a specified XML schema document (XSD). To specify a set of XSD documents for the workbench, in the test navigator, right-click the project and select Properties and Schema Catalog. Disable smart editing if you do not have an XSD or if you want to bypass the schema.
You can specify standard Java™ regular expressions. In the Regexp column, select the line of an attribute or text value and type the regular expression in the Value column. For example, the following regular expression checks for a correctly formatted email address: /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/
Query cases send their response when the number of nodes returned by an XML Path language query matches the expected number of nodes specified in the case element.
The verification occurs if the message return object is a valid XML document.
Specify a query using the XML path language. Refer to the XPath specification for details on expressing an XPath query: http://www.w3.org/TR/xpath. Click Build Expression to open the XPath Expression Builder window.
Attachment verification points return a Pass status when the message return attachment matches all of the criteria specified in the verification point.
The verification occurs only if the message return object is a valid XML document.
In the case of multiple attachments, this number specifies which attachment to check.
This specifies the expected size of the attachment.