17.10.2015 Views

Getting Started with IBM Data Studio for DB2

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

282 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>IBM</strong> <strong>Data</strong> <strong>Studio</strong> <strong>for</strong> <strong>DB2</strong><br />

10.1 <strong>Data</strong> web services: The big picture<br />

Web services, in general, are standards that allow applications to share in<strong>for</strong>mation<br />

through services on the web. There are a multitude of materials on the web about web<br />

services, and you can also refer to the ebook entitled <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> Web 2.0 <strong>for</strong><br />

more in<strong>for</strong>mation. In summary, however, web services are designed to allow <strong>for</strong><br />

communication between machines in a loosely coupled fashion. This can be accomplished<br />

by use of a Web Services Description Language (WSDL) XML document that provides the<br />

description required by the invoker to call the service (where is the service, what binding to<br />

use, etc) and to understand the messages (in XML) returned by the service.<br />

<strong>Data</strong> web services, in particular, refer to the ability to wrap web services around the logic<br />

provide by the database. For example, you might already have a SQL script or stored<br />

procedure that provides business logic <strong>for</strong> returning the current price of a particular item in<br />

inventory from the database. Using data web services, you are simply making it much<br />

easier <strong>for</strong> a web application (or other client) to start that capability, perhaps even as simple<br />

as putting the HTTP request in a web browser.<br />

This approach to creating a web service based on existing database operations/business<br />

logic is called “bottom up” as opposed to a to ”top down” approach in which the web<br />

services description is defined first and then logic is provided to map to that particular<br />

description.<br />

<strong>Data</strong> <strong>Studio</strong> (and Optim Development <strong>Studio</strong>) supports the development and deployment of<br />

data web services <strong>with</strong>out you having to write a single line of code. Figure 10.1 provides an<br />

overview of data web services using <strong>Data</strong> <strong>Studio</strong>.<br />

Figure 10.1 - Developing data web services <strong>with</strong> <strong>Data</strong> <strong>Studio</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!