Before you start
Service Component Architecture (SCA) applications are commonly used for integrating different business processes. Web 2.0 technologies are popular for integrating business Web applications. One of these technologies is the Dojo Toolkit, which is an open source JavaScript library designed to ease the rapid development of cross platform, JavaScript and Ajax based applications, and Web sites. For instance, Dojo widgets are widely used by IBM’s WebSphere Business Space to make the Web user interface dynamic and flexible.
Integrating a Dojo component with an SCA application is mutually beneficial. This tutorial will cover three main topics:
- How to enable an SCA application to be invoked from a Dojo client
- How to write a simple standalone JavaScript and Dojo client to communicate with an SCA application having HTTP endpoints
- How to integrate a custom Dojo Business Space widget with an SCA service
SCA applications can be exposed as an HTTP URL using the HTTP export binding. The SCA HTTP export binding is used to receive the HTTP requests arriving at the specified Web container URL. It transforms the request body into the SCA data object and passes the request data to other SCA application components. The SCA HTTP export binding is configurable and can handle different types of requests with different payload formats. Therefore, the SCA HTTP export binding is the binding to choose when communicating with a Dojo component.
Business Space is a browser-based graphical user interface that lets application users customize content from products in the WebSphere Business Process Management (BPM) portfolio. It is installed together with and deployed on WebSphere Process Server. Business Space supports custom Dojo widgets for additional flexibility.
You can also import the provided sample application project interchange archive file into your workspace and follow the configuration instructions. The sample application is fully functional and configured to run once deployed on WebSphere Process Server (hereafter Process Server).
In this tutorial, you will learn how to:
- Configure an SCA HTTP export binding to enable it to communicate with the Dojo requests.
- Write a simple standalone JavaScript and Dojo client to communicate with the SCA HTTP export binding.
- Integrate the Dojo code into a custom WebSphere Business Space widget to enable the widget to invoke the SCA application via HTTP.
You should be familiar with JavaScript, Dojo libraries, and SCA application integration. It will help if you have some familiarity with the SCA HTTP bindings.
To follow the configuration instructions, you need to import all the modules from the provided project interchange archive into your Business Integration workspace in WebSphere Integration Developer.
To follow the examples in this tutorial, you need WebSphere Integration Developer V6.2.x with the WebSphere Process Server V6.2.x test environment installed.
2 hours




