Portus Version 2018-08-24
 

Using Portus to invoke stored procedures

The widely used MySQL database is used here to outline the steps required to expose a SQL table as a web service.

Introduction

A stored procedure is a group of SQL statements compiled into a single execution plan. Portus 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 Portus 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.

Executing Stored Procedures using Portus

Previously (here) we showed how to create a 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 Portus. 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.


Ostia
www.ostiasolutions.com
Copyright @ 2006-2018 Ostia Software Solutions Limited.