WebService Behavior
This topic documents a feature of Binary Behaviors, which are obsolete as of Internet Explorer 10.
This section contains reference information for the WebService behavior.
Overviews/Tutorials
The WebService behavior enables client-side script to invoke remote methods exposed by Web Services, or other Web servers, that support the SOAP and Web Services Description Language (WSDL) 1.1. This behavior provides developers the opportunity to use and leverage SOAP, without requiring expert knowledge of its implementation. The WebService behavior supports the use of a wide variety of data types, including intrinsic SOAP data types, arrays, objects, and XML data. The WebService behavior is implemented with an HTML Component (HTC) file as an attached behavior, so it can be used in Microsoft Internet Explorer 5 and later versions.
This article explains how to use the WebService behavior to call remote methods from Web Services. The WebService behavior is implemented with an HTC file as an attached behavior, so it can be used in Internet Explorer 5 and later versions. Most of this article focuses on how to use the WebService behavior, but it also touches briefly on Web Services that are used by the WebService behavior. The About the WebService Behavior provides additional discussion and information on the main benefits and features of the WebService behavior; it also provides numerous links to related Web sites.
WebService Behavior: Supported Data Types
This document describes the ASP.NET and XML data types supported by the WebService behavior.
Elements and Objects
A script object that can be passed as a parameter to the callService method.
This object is exposed by the result object if an error is encountered from an invocation of the callService method. The properties of errorDetail provide detailed information and diagnostics on the error.
This object exposes the results and brief diagnostics for an invocation of the callService method.
An object that can be passed as a parameter to the useService method.
Attributes and Properties
Specifies the mode of remote method invocation.
A machine-readable error code that corresponds to a specific invocation of the callService method.
A property of the call object that specifies an URL that can be used to obtain the WSDL for a Web Service.
A Boolean property created by the WebService behavior after calling the callService method.
Specifies the name of a remote function exposed by a Web Service.
A property of the result object that has a unique value which corresponds to a specific execution of the callService method.
A property of the call object that specifies an associative array of parameter values.
Specifies a password for Web Services that require user authentication.
Specifies a port name that is used to access resources provided by a Web Service.
Exposes the raw SOAP data packet returned by the Web Service after invoking the callService method.
Specifies the persistence of the connection information required by Web services that use Secure Sockets Layer (SSL) authentication.
Indicates whether the WSDL information was returned successfully from an invocation of the useService method.
Specifies the URL of a Web Service.
An Array of SOAP headers that overrides the default SOAP header generated by the WebService behavior.
A human-readable error message that corresponds to a specific invocation of the callService method.
Not supported.
Specifies a user name for Web Services that require user authentication.
Retrieves the sFriendlyName parameter that is passed to the useService method.
A property of the result object that is created at run time.
The WSDL returned by a Web Service after an invocation of the useService method.
Methods
Calls a method that is implemented on a Web Service.
Creates an instance of call object that can be passed as a parameter to the callService method.
Creates a useOptions object that can be passed as a parameter to the useService method.
Establishes a friendly name for a Web Service URL that can be referenced from script.
Events
Fires when a result has been received from a remote method callService using the WebService behavior.
Fires after the WebService behavior has attempted to obtain the WSDL from a Web Service.