Thursday, July 17, 2008

16 - Web Service Behavior



- The WebService behavior enables methods that are implemented on Web Services to be called from client-side script in a web page, using Microsoft Internet Explorer 5 and later versions.

- A behavior is a component, that you can associate with an element within an HTML page, that extends the element's default functionality

- The main advantage of using a behavior to access a Web service is that you can update the content of a page without reloading the whole page.

- Before you can use the WebService behavior, you need to download the file from the Microsoft MSDN library.

- To attach a WebService behavior to a page, first download the WebService HTC File World Wide Web link file and put a copy in the same directory as the pages that use the behavior.

Limitations of the WebService Behavior

- The first limitation - You can use the WebService behavior to access only those Web services located in the same domain as the Web page that contains the behavior.

- The second limitation concerns the data types that you can access through the WebService behavior - The WebService behavior supports all the base .NET types, such as Strings, Integers, and DateTimes, Arrays. However there is no direct support for more complex types, such as DataSets, DataTables, Collections, or custom objects.

Thanks & Regards,

Arun Manglick || Senior Tech Lead

No comments:

Post a Comment