Portus Version 2018-08-24
 

Using Portus to access MySQL databases

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

Introduction

MySQL is a multithreaded, multi-user SQL database management system (DBMS) which has, according to MySQL AB, more than 10 million installations. The ODBC interface is called "MySQL Connector/ODBC" (or also "MyODBC").

This HOWTO assumes that

There are many freely available demo databases available online. One of the best known ones is the the MySQL World database. It contains statistics about countries around the world.

See here for more information about the world database and more.

For the purpose of this HOWTO, the world database has been used.

MySQL Connector

If you already have the MySQL Connector driver installed, then skip this step.

You can check is it installed by selecting Start Control Panel Add/Remove programs and look for MySQL Connector ODBC 3.xx / 5.xx in the list of installed programs.

The MySQL Connector is now installed. To configure it, follow these steps

Portus Configuration

Portus must now be configured to access and use this new MySQL DSN

Accessing MySQL

Now that the resources have been set up, you can access the Web Service Description Language ( WSDL ) by selecting the 'WSDL URL is ..' in the Properties of the Service:

There are many clients available to consume and use web services, for example soapUI, XMLSpy, and Infopath. Here we will use soapUI.

Congratulations! You have now accessed MySQL using Portus!


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