OnWebServiceResponse Event

Applies to TestComplete 14.0, last modified on January 23, 2019

Occurs after a response from the tested web service is received.

Declaration

OnWebServiceResponse(SenderResponseHelperResponseInfo) Parameters
Sender [in] Required Variant
Response [in] Required An IXMLDOMDocument object
Helper [in] Required A WebServiceHelper object
ResponseInfo [in] Required A WebServiceRequestResponseInfo object

Description

This event occurs after a response from the tested web service whose method you have called is received.

You can write the OnWebServiceResponse event handler to perform actions over responses. To access the response content, use the Response parameter of the event handler.

The event is triggered upon obtaining a response from the tested web service. If in your tests you call several web service methods and you want to process responses obtained only from some of them, use the ResponseInfo parameter to determine the name of the web service from which a response was obtained and the name of the method whose result the response contains.

Parameters

The event has the following parameters:

Sender

The Event control that processes the event.

Response

An object that implements the IXMLDOMDocument interface and contains the SOAP response received from the tested web service. To access and modify data contained in the response, use the properties and methods of the IXMLDOMDocument interface.

For more information on the interface and DOM, see the XML Core Services and Document Object Model article in the MSDN library.

Helper

A WebServiceHelper helper object you can use to add custom headers to the SOAP response.

ResponseInfo

A WebServiceRequestResponseInfo object that provides information on the tested web service and on the called method.

Remarks

For information on how to create an event handler for this and other TestComplete events, see Creating Event Handlers for TestComplete Events.

See Also

Testing Web Services
Adding Custom Headers to SOAP Requests
OnWebServiceRequest Event
Handling Events
Event Control

Highlight search results