Manually adding a response element
You can add service response elements to specify the received
content of a service request. You can use the test editor to create
or edit response elements in an existing service test.
Before you begin
Service response elements are children of service request elements. Service tests use response elements to measure the response time between a call and the corresponding response. Response elements can also contain verification points. IBM® WebSphere® MQ and JMS requests can contain multiple response elements.
Depending
on the type of request, you can manually create several types of response
elements:
- Response from Web Services Description Language (WSDL): For web services, this response type uses the WSDL file to create the specified XML structure of the response.
- XML response: This response type creates an empty response element in which you must manually create the expected XML structure. You can use an XML Schema Definition (XSD) document from the XSD catalog to assist you.
- Text response: This response type creates an empty response element, which can contain freely formatted text.
Alternatively, you can automatically create and update response content by recording the actual response content that the service returns. See Updating a service response from the service for more information.
Procedure
To add a response element to a service test: