Section 8.2.  Creating a Web Service

JavaScript Editor Ajax toolkit     Ajax tutorials 



Main Page

Previous Page
Next Page

8.2. Creating a Web Service

Follow these steps to create an XML web service in SQL Server 2005:

  1. Establish an HTTP endpoint on the SQL Server instance. An endpoint is an interface through which HTTP-based clients can query the server. You establish an endpoint by using the CREATE ENDPOINT T-SQL DDL statement.

  2. Expose stored procedures or UDFs as web methods. You do this by defining existing stored procedures or UDFs for web access by using either the CREATE ENDPOINT or ALTER ENDPOINT T-SQL DDL statement.

  3. Create the WSDL that describes the web service and make it available to clients, allowing them to access the web service. The WSDL can be generated by SQL Server or you can custom-build it.

The next section in this chapter gives an example of how to create a web service in SQL Server 2005.


Previous Page
Next Page


JavaScript Editor Ajax toolkit     Ajax tutorials