16.10.2015 Views

Getting Started with IBM Data Studio for DB2

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 10 – Developing data web services 283<br />

On the left side of Figure 10.1, you can see different database operations. For example,<br />

there is a query to return all in<strong>for</strong>mation about an employee when an employee number is<br />

provided. There is an update statement to update the first name of an employee based on<br />

an employee number; there is a stored procedure that does some bonus calculations, and<br />

there is an XQuery that is retrieving in<strong>for</strong>mation from an XML document. Using <strong>Data</strong><br />

<strong>Studio</strong>, these operations can be converted to data web services <strong>with</strong>out any coding on your<br />

part. A few clicks are all you need to have the data web service created <strong>for</strong> you. On the<br />

right side of the figure, you can see that <strong>Data</strong> <strong>Studio</strong> automatically creates the artifacts<br />

needed to deploy this web service, including the WSDL document, and the JAVA EE<br />

runtime artifacts such as a configuration file and the runtime package.<br />

10.1.1 Web services development cycle<br />

Just like developing a JAVA EE application, the data web service development cycle<br />

consists of the following steps, as shown in Figure 10.2:<br />

1. Create the service<br />

2. Deploy the service to a JAVA EE application server<br />

3. Test the service.<br />

Figure 10.2 – Development and deployment of a data web service<br />

As shown in Figure 10.2, after you drag and drop an operation to create a web service,<br />

<strong>Data</strong> <strong>Studio</strong> generates the corresponding web service definitions that make a data web<br />

service. The service runtime artifacts are packaged as a Java EE web application. The<br />

Java EE application is ready to be deployed into a Java EE application server. You can<br />

apply additional settings <strong>for</strong> security, monitoring, logging, and more during the deployment<br />

phase.<br />

10.1.2 Summary of the data web services capabilities in <strong>Data</strong> <strong>Studio</strong><br />

Here is a summary of data web services features provided by <strong>Data</strong> <strong>Studio</strong>:

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

Saved successfully!

Ooh no, something went wrong!