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.

Appendix D – The Sample Outdoor Company 361<br />

Appendix E – Advanced topics <strong>for</strong> developing data web<br />

services<br />

This appendix shows you how to take advantage of more capabilities <strong>with</strong> data web<br />

services, including the following topics:<br />

<br />

<br />

<br />

<br />

<br />

<br />

Consuming web services – using different bindings<br />

Simplifying access <strong>for</strong> single row results<br />

Handling stored procedure result sets<br />

Using XSL to trans<strong>for</strong>m input and output results<br />

Understanding data web services artifacts<br />

Selecting a different SOAP engine framework<br />

E.1 Testing additional web service bindings<br />

You may have clients that require a different binding in order to consume the web service<br />

response and which are not supported <strong>for</strong> testing in the Web Services Explorer. In this<br />

section, we’ll review a couple of basic items you need to understand <strong>for</strong> using and testing<br />

these additional bindings, including more detail on the location of the WSDL and the default<br />

message XML schema. Then we’ll explain how to use each of the following bindings:<br />

<br />

<br />

<br />

<br />

SOAP over HTTP: This is the binding described in Chapter 10. It is used <strong>with</strong> WSDLbased<br />

clients like SOAP frameworks, Enterprise SOA environments, and <strong>with</strong> service<br />

registries such as the WebSphere Service Registry and Repository. We include it here<br />

<strong>for</strong> completeness.<br />

Web Access: HTTP GET: This is used <strong>for</strong> quick access from Web 2.0 clients and <strong>for</strong><br />

direct access from web browsers.<br />

Web Access: HTTP POST URL-encoded: Used <strong>with</strong> more “traditional” HTML, such<br />

as <strong>for</strong> submitting HTML <strong>for</strong>ms.<br />

Web Access: HTTP POST XML: Web 2.0, used by AJAX clients and JavaScript<br />

frameworks using the asynchronous HTTPXMLRequest JavaScript method from a web<br />

browser.

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

Saved successfully!

Ooh no, something went wrong!