This topic documents a feature of Binary Behaviors, which are obsolete as of Internet Explorer 10.
Event Property WebService.onresult = handler; attachEvent WebService.attachEvent( "onresult", handler); Named script <
SCRIPT FOR= WebService
Bubbles No Cancels No To invoke Run the callService method on the WebService behavior. Default action Initiates the script handler or callback function associated with the onresult event.
The onresult event is only available to objects in the document to which the WebService behavior is attached. If a callback handler function is specified to process the results returned by a method callService, then the onresult event is not fired.
The following subproperties of the event object are available.
Returns a unique identifier that is associated with a particular instance of a method call.
Returns the value, or values, of the method call. The data type returned depends on the definition of the method in the service description.
Returns the whole XML data island received from the server, including the packet headers and envelope when SOAP is used.
In addition to providing the value and raw properties, the result object also provides the following properties, which contain error diagnostic information.
Returns a Boolean. If true, the method call resulted in an error; if false, the method was called successfully.
If result.error is true then the errorDetail object is available, exposing the following set of properties.
An error code.
An error message
The entire XML data packet, received from the server.
Note If result.error is false then no error has occurred, and the errorDetail object is not available.
The following sample code shows how the onresult event can be used to determine if a method call returned successfully.