26.12.2013 Views

HTTP bindings for imports and exports

HTTP bindings for imports and exports

HTTP bindings for imports and exports

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

© Copyright IBM Corporation 2008. All rights reserved<br />

What you should be able to do<br />

At the end of this lab you should be able to:<br />

• Create <strong>and</strong> configure <strong>HTTP</strong> import <strong>and</strong> export <strong>bindings</strong> in the WebSphere Integration Developer V6.1.<br />

Underst<strong>and</strong> how to set use the different data binding <strong>and</strong> the function selector options<br />

• Run the application <strong>and</strong> navigate through the Administration console to see the <strong>HTTP</strong> binding<br />

configurations. Use TCP/IP monitor view in WebSphere Integration Developer to view the <strong>HTTP</strong> traffic<br />

between the client <strong>and</strong> the provider.<br />

Introduction to the lab example<br />

In this lab, you will import a skeleton of a service provider Stock Quote application <strong>and</strong> a Stock Quote<br />

service client application, into the WebSphere Integration Developer workspace. You will then add <strong>HTTP</strong><br />

<strong>bindings</strong> so that the client can send request <strong>and</strong> receive response from the service provider using <strong>HTTP</strong><br />

application. The complete application looks like the one shown below abstractly.<br />

You will then work through the different configuration options of the <strong>HTTP</strong> <strong>bindings</strong>.<br />

The picture below depicts the structure of the application you work with in this lab:<br />

The Stock quote client module, called SQuoteClient shown on the left side of the picture above, is a simple<br />

SCA module that has a SCA POJO component being called from a JSP page through the st<strong>and</strong>-alone<br />

reference. The SCA POJO is wired to a <strong>HTTP</strong> import, called SQuote<strong>HTTP</strong>.<br />

The <strong>HTTP</strong> request from the client contains the customer ID <strong>and</strong> the stock symbol.<br />

The Stock Quote service provider module, called SQuote, shown on the right side of the picture above is a<br />

simple SCA module receiving <strong>HTTP</strong> request through the <strong>HTTP</strong> export, called SQuote<strong>HTTP</strong>. The service is<br />

provided by a SCA POJO component, called SQuote. The SCA POJO implementation contains some hard<br />

coded values to return as a response. It has been intentionally kept simple to keep the focus on the <strong>HTTP</strong><br />

<strong>bindings</strong>.<br />

2008 August, 19 IBM WebSphere V 6.1 – Lab exercise Page 3 of 52<br />

SCA <strong>HTTP</strong> binding

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

Saved successfully!

Ooh no, something went wrong!