29.01.2013 Views

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

WebSphere Application Server - IBM Redbooks

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Template and images<br />

Item Folder/Package Description<br />

Result.jsp currency_conversion This page takes the<br />

data that is passed from<br />

Input.jsp and calls a<br />

java proxy bean<br />

(CurrencyExchangePro<br />

xy.java), which makes a<br />

call to the Web service.<br />

The page then gets the<br />

result back from the<br />

bean and displays the<br />

converted amount by<br />

multiplying the original<br />

amount by the rate as<br />

retrieved from the bean.<br />

CurrencyExchangeProxy.java proxy.soap This JavaBean gets<br />

installed by the Web<br />

service and is called<br />

from Result.jsp. It uses<br />

the source and target<br />

country’s parameters<br />

from Input.jsp and<br />

makes the call to<br />

xmethods (Web service<br />

provider) Web service. If<br />

successful, it gets the<br />

conversion rate, which it<br />

passes back to<br />

Result.jsp.<br />

Note: For additional information about this component please see “Using Web<br />

services in the Online Catalog sample” on page 372.<br />

The themes folder in the WebContent directory of the project contains all the<br />

template and image files that are used throughout the application. For additional<br />

information about this component please see “Adding HTML pages to the Online<br />

Catalog sample” on page 135.<br />

Appendix C. Online Catalog application 627

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

Saved successfully!

Ooh no, something went wrong!