Forum Discussion
AlexanderM
Staff
14 years agoHi Raul,
To find out what happens, we need some more details:
1. The WSDL file of the web service.
2. The contents of the LastRequest and LastResponse properties of your WebService element after the error occurs.
Since the error you are getting is an exception, you will need to handle it in your script. A couple of examples demonstrating how to do this:
In VBScript:
And in JScript:
After the problem occurs, the code will post the property values to the Test Log - you will see the XML contents in the "Additional Information" panel.
Send the collected information to our Support Team, and we will get back with some results.
To find out what happens, we need some more details:
1. The WSDL file of the web service.
2. The contents of the LastRequest and LastResponse properties of your WebService element after the error occurs.
Since the error you are getting is an exception, you will need to handle it in your script. A couple of examples demonstrating how to do this:
In VBScript:
On Error Resume Next
' This will be your problematic call
R = WebServices.MyService.CelsiusToFahrenheit("-15")
Call Log.Message("LastRequest", WebServices.MyService.LastRequest.xml)
Call Log.Message("LastResponse", WebServices.MyService.LastResponse.xml)
And in JScript:
try
{
// This will be your problematic call
var R = WebServices.MyService.CelsiusToFahrenheit("-15");
}
finally
{
Log.Message("LastRequest", WebServices.MyService.LastRequest.xml)
Log.Message("LastResponse", WebServices.MyService.LastResponse.xml)
}
After the problem occurs, the code will post the property values to the Test Log - you will see the XML contents in the "Additional Information" panel.
Send the collected information to our Support Team, and we will get back with some results.