Skip to main content

By clicking Submit, you agree to the developerWorks terms of use.

The first time you sign into developerWorks, a profile is created for you. Select information in your developerWorks profile is displayed to the public, but you may edit the information at any time. Your first name, last name (unless you choose to hide them), and display name will accompany the content that you post.

All information submitted is secure.

  • Close [x]

The first time you sign in to developerWorks, a profile is created for you, so you need to choose a display name. Your display name accompanies the content you post on developerworks.

Please choose a display name between 3-31 characters. Your display name must be unique in the developerWorks community and should not be your email address for privacy reasons.

By clicking Submit, you agree to the developerWorks terms of use.

All information submitted is secure.

  • Close [x]

Integrating a Dojo client with an SCA application via SCA HTTP binding

Eugene Kharlamov, Software Engineer, IBM
Eugene Kharlamov photo
Eugene Kharlamov is a Software Engineer at the IBM Toronto Lab, Ontario, Canada. He works on connectivity components configuration tools for WebSphere Integration Developer.
Udesh Senaratne, Software Engineer, IBM
Photo of Udesh Senaratne
Udesh Senaratne is a Software Engineer at the IBM Toronto Lab, Ontario, Canada. He has developed tools for WebSphere Integration Developer, Business Modeler, and Business Space.
Paul Pacholski (pacholsk@ca.ibm.com), Technical Sales Lead, IBM
Photo of Paul Pacholski
After an 18 year career as a Senior Developer at the IBM Toronto Lab, in 1999, Paul Pacholski joined the Worldwide WebSphere Technical Sales Team. In his current role as the WebSphere Business Process Management Technical Sales Lead, Paul is responsible for technical enablement of the BPM Technical Sales organization worldwide. His responsibilities also include customer engagements, consulting, presenting at technical conferences, and publishing technical papers.

Summary:  This tutorial explains how to integrate a Dojo client (simple stand-alone or WebSphere® Business Space widget) with the SCA application via SCA HTTP export binding. Once this tutorial is complete, you will understand the key Dojo code requirements for a simple Dojo client, how to configure the SCA HTTP export binding to make sure that the Dojo component can communicate with it, and finally how to create a WebSphere Business Space custom widget that can communicate with the SCA application via HTTP.

Date:  25 Nov 2009
Level:  Intermediate PDF:  A4 and Letter (1294 KB | 31 pages)Get Adobe® Reader®

Activity:  16855 views
Comments:  

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).

Objectives

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.

Prerequisites

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.


System requirements

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.


Duration

2 hours

1 of 9 | Next

Comments



Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=WebSphere
ArticleID=449545
TutorialTitle=Integrating a Dojo client with an SCA application via SCA HTTP binding
publish-date=11252009
author1-email=eugenek@ca.ibm.com
author1-email-cc=dwu@us.ibm.com
author2-email=udeshs@ca.ibm.com
author2-email-cc=dwu@us.ibm.com
author3-email=pacholsk@ca.ibm.com
author3-email-cc=dwu@us.ibm.com

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Try IBM PureSystems. No charge.