Occurs after a response from the tested web service is received.
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.
The event has the following parameters:
The Event control that processes the event.
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
For more information on the interface and DOM, see the XML Core Services and Document Object Model article in the MSDN library.
WebServiceHelper helper object you can use to add custom headers to the SOAP response.
WebServiceRequestResponseInfo object that provides information on the tested web service and on the called method.
For information on how to create an event handler for this and other TestComplete events, see Creating Event Handlers for TestComplete Events.