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
About the WebService BehaviorThe 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.
Using the WebService BehaviorThis 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 TypesThis document describes the ASP.NET and XML data types supported by the WebService behavior.
Elements and Objects
callA script object that can be passed as a parameter to the callService method.
errorDetailThis 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.
resultThis object exposes the results and brief diagnostics for an invocation of the callService method.
useOptionsAn object that can be passed as a parameter to the useService method.
Attributes and Properties
asyncSpecifies the mode of remote method invocation.
codeA machine-readable error code that corresponds to a specific invocation of the callService method.
endpointA property of the call object that specifies an URL that can be used to obtain the WSDL for a Web Service.
errorA Boolean property created by the WebService behavior after calling the callService method.
funcNameSpecifies the name of a remote function exposed by a Web Service.
idA property of the result object that has a unique value which corresponds to a specific execution of the callService method.
paramsA property of the call object that specifies an associative array of parameter values.
passwordSpecifies a password for Web Services that require user authentication.
portNameSpecifies a port name that is used to access resources provided by a Web Service.
rawExposes the raw SOAP data packet returned by the Web Service after invoking the callService method.
reuseConnectionSpecifies the persistence of the connection information required by Web services that use Secure Sockets Layer (SSL) authentication.
serviceAvailableIndicates whether the WSDL information was returned successfully from an invocation of the useService method.
serviceUrlSpecifies the URL of a Web Service.
SOAPHeaderAn Array of SOAP headers that overrides the default SOAP header generated by the WebService behavior.
stringA human-readable error message that corresponds to a specific invocation of the callService method.
timeoutNot supported.
userNameSpecifies a user name for Web Services that require user authentication.
userNameRetrieves the sFriendlyName parameter that is passed to the useService method.
valueA property of the result object that is created at run time.
WSDLThe WSDL returned by a Web Service after an invocation of the useService method.
Methods
callServiceCalls a method that is implemented on a Web Service.
createCallOptionsCreates an instance of call object that can be passed as a parameter to the callService method.
createUseOptionsCreates a useOptions object that can be passed as a parameter to the useService method.
useServiceEstablishes a friendly name for a Web Service URL that can be referenced from script.
Events
onresultFires when a result has been received from a remote method callService using the WebService behavior.
onserviceavailableFires after the WebService behavior has attempted to obtain the WSDL from a Web Service.