16.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.

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

3. Click Finish to create the web service. The Web Services folder now contains the new<br />

web service as shown in Figure 10.12.<br />

Figure 10.12 – The new web service in the data development project<br />

The asterisk by the web service name means that the web service was not built and<br />

deployed since it was created or last changed.<br />

10.7 Add SQL statements and stored procedures as web service<br />

operations<br />

After creating the web service you can add SQL statements and stored procedures as web<br />

service operations, as follows:<br />

1. Open theGOSALES andGOSALESCT schemas in the <strong>Data</strong> Source Explorer. Select the<br />

GET_CUSTOMER_NAME procedure from theGOSALESCT schema and the<br />

PRODUCT_CATALOG procedure from theGOSALES schema and drag and drop them<br />

into your newly created SimpleService web service, as shown in Figure 6.13.

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

Saved successfully!

Ooh no, something went wrong!