November 20, 2001 - Checking for Errors after Calling A Web Service | WebReference

November 20, 2001 - Checking for Errors after Calling A Web Service

Yehuda Shiran November 20, 2001
Checking for Errors after Calling A Web Service
Tips: November 2001

Yehuda Shiran, Ph.D.
Doc JavaScript

The result object includes everything you need in order to analyze what happened to the message you have sent to a Web service. It has the following properties:

error. A Boolean property created by the WebService behavior after using the callService() method. It is true when the call is not successful, and false when it is.
  • id. A property of the result object that has a unique value which corresponds to a specific execution of the callService() method. Should be identical to the integer returned by the callService() method.
  • raw. This property exposes the raw Simple Object Access Protocol (SOAP) data packet returned by the Web Service after invoking the callService() method.
  • value. A property of the result object that is created at runtime. This is the returned value by the specific Web method called by the callService() method. The data type of result.value depends on the data type of the returned value of the Web method that was invoked.