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.

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

treat multibyte UTF-8 characters in URLs correctly.<br />

Tomcat<br />

With Tomcat, you need to add the attribute URIEncoding="UTF-8" to your <br />

configurations in theserver.xml file. More details can be found here:<br />

http://wiki.apache.org/tomcat/FAQ/Connectors<br />

WebSphere Application Server Community Edition (WAS CE):<br />

WAS CE ships Tomcat as its web container - but there is noserver.xml file. Instead,<br />

there is a Tomcat configuration section in the$WASCE_HOME/var/config/config.xml<br />

file. You need to add UTF-8 to the<br />

section. More details can be found here:<br />

http://publib.boulder.ibm.com/wasce/V2.1.1/en/tomcat-configuration.html<br />

SQL NULL values are treated as absent. This means parameter values that are not<br />

present in the key/value string are set to SQL NULL. A parameter <strong>with</strong> an empty value is<br />

treated as an empty string.<br />

You can also easily test the HTTP GET binding <strong>with</strong> your web Browser. Simply enter the<br />

URL into your browser to start the web service operation. Figure E.6 shows what the<br />

RankEmployee operation looks like when you open it <strong>with</strong> Firefox.<br />

Figure E.6 – The service response in a web browser window<br />

E.1.6 HTTP POST (JSON) Binding<br />

Finally, data web services provides you <strong>with</strong> a simple JSON binding that can be leveraged<br />

from JavaScript applications –<strong>for</strong> example, when using AJAX <strong>with</strong> theXMLHttpRequest

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

Saved successfully!

Ooh no, something went wrong!