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

Yehuda Shiran, Ph.D.
Doc JavaScript

Developer News
Microsoft Shows Off Silverlight 4, IE9 Plans
Metasploit Expands Vulnerability Test Framework
HyperCard Reborn?

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.


People who read this tip also read these tips:

Look for similar tips by subject:

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Rolling Out Your Own HTML Application Version Control · HTML 5: Client-side Storage · Working with Ajax Server Extensions
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Wi-Fi Product Watch, November 2009 · Chip Market Recovering From '08 Collapse · Low-Cost Tools to Kickstart Your New Business