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.

302 <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 />

Under the covers, <strong>Data</strong> <strong>Studio</strong> starts up the WAS CE instance (if it’s not started already). If<br />

this is the first time you’ve deployed a data web service, you may get asked if <strong>Data</strong> <strong>Studio</strong><br />

should update the <strong>DB2</strong> JDBC driver at the application server. You should confirm this<br />

message to be sure that the latest <strong>DB2</strong> JDBC driver is used.<br />

In the next step <strong>Data</strong> <strong>Studio</strong> generates the web service runtime artifacts – like the WSDL<br />

file, a JAVA EE web application project (WAR) and deploys all artifacts to the application<br />

server. For more in<strong>for</strong>mation on what those artifacts are and how to locate them, see<br />

Appendix E.<br />

In addition, because you selected the option to bring up the Web Services Explorer<br />

automatically, it will come up automatically <strong>for</strong> testing. We’ll cover testing in the next<br />

section.<br />

Note:<br />

You can also just build the web service runtime artifacts <strong>with</strong>out automatically deploying<br />

them to the application server by selecting Build deployable files only, do not deploy to a<br />

web server.<br />

<strong>Data</strong> <strong>Studio</strong> generates the web application project and *.war file <strong>for</strong> the web service. You<br />

can now take the *.war file and use the application server administration tools to deploy<br />

the application manually.<br />

10.8.1. The location of the generated WSDL<br />

The content of a SOAP message is usually described in the WSDL (Web Service<br />

Description Language) document. WSDL is based on XML as well. <strong>Data</strong> <strong>Studio</strong> generates<br />

a WSDL <strong>for</strong> each data web service. In fact, the Web Services Explorer requires the WSDL<br />

file to be able to communicate <strong>with</strong> the web service.<br />

To locate the WSDL file <strong>for</strong> yourSimpleService web service, expand the folder XML -><br />

WSDL in your data development project as shown in Figure 10.19.

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

Saved successfully!

Ooh no, something went wrong!