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
OpenOffice 3.2 Lands Amid Critical Changes
Red Hat, IBM Firmly in KVM Virtualization Camp
Red Hat Talks Up Open Source Cloud Plans

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:


The Network for Technology Professionals

Search:

About Internet.com

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

webref The latest from WebReference.com Browse >
Search Engine Optimization: Selecting and Embedding Keywords · Are Google's Language Translation Web Services Ready for Prime Time? · Installing and Using Meeplace, the Business Review CMS
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Workers Say Telework Is More Productive, Bosses Not So Sure · Kingston Debuts Power-Saving Memory Upgrades · Social Networking is King: Facebook Edges Google