spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / javascript / column98


Web Services, Part III: WebService's Methods

Benefits of the WebService Behavior

Developer News
News Flash: Adobe Has iPhone Workaround
Adobe's Flash 10.1 Goes Mobile (Minus iPhone)
A Salute to Visionary CEOs

The primary reason to use the WebService behavior is that it provides you with a way to use Web services without having expert knowledge of SOAP. SOAP (Simple Object Access Protocol) is the protocol by which Web pages send and receive messages to and from Web services over HTTP. The WebService behavior simplifies the use of Web services by handling the communication of the SOAP data packets between the browser and the Web services. You don't have to worry about assembling and disassembling SOAP messages. All the SOAP-specific handling code is encapsulated inside the behavior, simplifying the client-side script in the main Web page.

The WebService behavior exposes objects and methods to client-side scripts, to enable assembling messages as well as disassembling responses that are sent back by the Web services. The objects that are exposed by the behavior enable error handling and easy access to the returned data. The WebService behavior receives method calls from the client-side script and sends a request to the Web service. The results are returned to the client script, and processing continues. The Web page can then use the information in whatever context is required, such as updating some portion of the page, sending error messages, etc.

A key feature of the WebService behavior is that it enables client-side script to access a Web service without requiring navigation to another URL. Using the WebService behavior approach, only portions of the page that are indicated by the user's inputs can be dynamically updated. This is much more efficient than navigating to a new URL, after which the browser downloads and renders the entire page. Although this method of refreshing the whole page is very common today, it is inefficient because the Web page refreshes and re-renders an entire page of content, even if only a small percentage of the page has actually changed. You can probably notice this inefficiency when searching a catalog or a search engine. The delays and waste of resources can be significant.

Next: How to use the WebService Behavior

http://www.internet.com

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs

webref The latest from WebReference.com Browse >
Building a Banking Application Home Page with OOP · Mixing Scripting Languages · Review: phpFox, a Social Networking CMS with all the Bells and Whistles
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Enterprise 2.0: Social Networking in the Cloud · BroadSoft Marketplace Hastens Pace of Telephony Innovation · Review: HTC Hero for Sprint


Produced by Yehuda Shiran and Tomer Shiran
All Rights Reserved. Legal Notices.
Created: December 3, 2001
Revised: December 3, 2001

URL: http://www.webreference.com/js/column98/2.html