The .NET Framework makes creating and consuming Web Services a walk in the park. Creating a Web Service is as
easy as marking a class with the WebService attribute; Web Services can be easily consumed
because the .NET Framework includes tools to build proxy classes given a Web Service"s WSDL file. All of
the examples we have seen in previous installments in this article series have consumed Web Services from
server-side code. That is, a Web Service is consumed when a postback occurs and server-side code
in an ASP.NET page creates an instance of the proxy class and invokes one of its methods.
In 2007 Microsoft released their free ASP.NET AJAX framework, which simplifies
building AJAX-enabled ASP.NET applications (see An Introduction
to AJAX and Atlas with ASP.NET 2.0 for more information). The ASP.NET AJAX framework is best known for its
myriad of AJAX-enabled Web controls, but it also includes functionality to create and consume Web Services through
client-side script. Best of all, the workflow for creating script-accessible Web Services is very similar to creating
Web Services consumed through server-side .NET code. To mark a Web Service as being consumable from client script,
simply add the ScriptService attribute; the service can be consumed through script via an auto-generated
JavaScript proxy class.
In this article we"ll look at how to use Microsoft"s ASP.NET AJAX framework to consume Web Services from script.
We will also examine how the low-level communication differs between Web Services consumed from .NET code versus
Web Services consumed from JavaScript. Read on to learn more!
Read More >
Related Posts:
>>Hosting ASP.NET Applications in Medium Trust
>>Accessing and Updating Data in ASP.NET 2.0: Deleting Data
>>Building a User Control that Displays RSS Feeds Using a DataList and an XmlDataSource Control
>>Personalizing RSS Feeds with ASP.NET 2.0
>>Rolling Your Own Website Administration Tool - Part 2
>>Rolling Your Own Website Administration Tool - Part 1
>>Debugging SQL Server 2005 Stored Procedures in Visual Studio
>>Deploying a Local Database to a Remote Web Host
>>Accessing and Updating Data in ASP.NET 2.0: Inserting Data
>>Maintaining a Log of Database Changes - Part 2
>>Accessing and Updating Data in ASP.NET 2.0: Programmatically Accessing Data using the Data Source Controls
>>Accessing and Updating Data in ASP.NET 2.0: Programmatically Accessing Data using the Data Source Controls
Month Archives:
Top Tags:
social software social networking .NET mashable Sharepoint ASP.NET Web 2.0 Web2.0 Startups Community News Search Marketplace General Software Development AJAX Windows Vista Microsoft Visual Studio myspace People Powered! YouTube Silverlight Vista Featured News MOSS C# Events Google WPF MOSS 2007 Office 2007 Web
@2007 All rights Reserved |