Web Services in ASP.NET AJAX

ASP.NET Web services are components whose methods you can call by using HTTP requests. In this section, you can learn how to create a Web service and how to use client script in an AJAX-enabled Web application to call the Web service.

In This Section

Using Web Services in ASP.NET AJAX

Provides an overview of how to call Web services from client script in an AJAX-enabled ASP.NET Web page.

Exposing Web Services to Client Script

Shows how to make a Web service available to JavaScript running in the browser.

Exposing WCF Services to Client Script

Shows how to make a WCF service available to JavaScript running in the browser.

Calling Web Services from Client Script

Shows how to call a Web service from JavaScript.

Walkthrough: Creating and Using AJAX-Enabled Web Service

Provides a step-by-step example that shows how to create an AJAX-enabled Web service in Visual Studio and how to create a Web site that uses the Web service from client script.

See Also

Concepts

Tags :


Community Content

sankarsan
ScriptService proxy
When a ServiceReference is added the following additional markup is rendered in the
HTML as shown in the snippet below:
<script src=http://<WebSite Address>/<Web Application Name>/<WebService>.asmx/js
type="text/javascript">
</script>
This makes call to the web service and the javascript code for the proxy class to invoke the Service is generated at runtime.

Another way to invoke the Service is to type this URL in browser and save the javascript file.Then add a script reference to this javascript.In case your service URL changes in future you just have to change the js file and your markup is untouched.

Page view tracker