SOA Gateway Version 2010-05-31
 —  Administration  —

Using the SOA Gateway to invoke stored procedures

Using the SOA Gateway to invoke stored procedures


Introduction

A stored procedure is a group of SQL statements compiled into a single execution plan. The SOA Gateway uses the ODBC interface to communicate to a relational database management system (RDBMS) using stored procedues.

Microsoft SQL Server is a relational database management system (RDBMS) produced by Microsoft.

This HOWTO assumes that the SOA Gateway and SQL Server database are both running on Windows.

It is assumed that the SQL Server has the ODBC Connector installed.

For the purpose of this HOWTO, we've installed the "AdventureWorks" sample that is provided with the SQL Server installation. See here for more information about AdventureWorks and other SQL Server sample databases.

Top of page

Executing Stored Procedures using the SOA Gateway

Previously (here) we showed how to create a Web Service based on an MS SQL stored procedure, uspGetManagerEmployees. The following steps show what needs to be done to execute it.

This WSDL is the starting point to invoking your stored procedures using the SOA Gateway. There are many clients available to consume and use web services, for example soapUi, XMLSpy, and Infopath. For this example we are using soapUi.

If you are unfamiliar with soapUI a tutorial on using it is available here.

Congratulations! You have now executed an MS SQL Server stored procedure using the SOA Gateway!

Top of page