Section 8.2. Creating a Web Service

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.

Programming SQL Server 2005
Programming SQL Server 2005
ISBN: 0596004796
EAN: 2147483647
Year: 2007
Pages: 147
Authors: Bill Hamilton © 2008-2017.
If you may any questions please contact us: