Saturday, March 7, 2015

Use Case 1 - WebSphere Cast Iron Cloud Integration - HTTP Receive and Send

Preface - This post is part of "WebSphere Cast Iron Cloud Integration with" series.

Today I will post how you can use WebSphere Cast Iron for a simple HTTP Receive and Send integration. Though this post is nothing to do with Integration with, but still I would like to make this post so that you can understand how easy it is to configure WebSphere Cast Iron.

I will use Cast Iron Design Studio to do the configuration.

Step 1:
Create a project with name "HTML_2_HTML_Integration" and save it. Click on File | New | New Project [Local]..

Step 2:

You should see a screen like that once you click on the ok button.
Step 3:
Now drag and drop activity "Receive Request" from right hand side to the Orchestration. The screen should look like -
Step 4:
Now let's configure Receive Request -
  • Configure Pick Endpoint - Click on Pick EndPoint and then the New.. button to create a new EndPoint. The screen should look like - 
     Here you can choose the port number and UserName/Password for your HTTP connection. For the simplicity, I am just choosing the default values i.e. post 80 and no UserName/Password. 
  • Configure URL - Click on Configure and provide a name which will be appended after Hostname. I have given a name "HelloWorld". Choose POST as the HTTP method and check "Requires a Reply" at the button. It should look like -
  • Configure Map Outputs - This is the most important part. Here we will map the inputs from activity i.e. Receive Request to orchestration which will be used in the next step. We can do that by - clicking on copy, followed by select body and click on create button. At the end you should see a map like - 
     So now we have configures our first activity. Now it's time to configure our next activity i.e. Send Response.
Step 5:
Here we will configure another activity named "Send Response". The requirement is that whatever we will post in the first activity i.e. Receive Request as HTTP POST, the same thing should come here. So let's create this by dragging and dropping the activity Send Response after "Receive Request" activity. The screen should look like -
Step 6: 
Here we will configure Send Response activity. We need to configure map inputs so that information can go from Orchestration to activity. We can do that by clicking on Select Inputs and choose body. Then Map body from Orchestration to body from activity. The mapping should look like -

Step 7:
We are done. Save this project by File | Save Project [To Cloud]
Step 8:
It's time to test the configuration. First we need to start the orchestration and we can do that from Orchestration | Start Orchestration
Step 9:
Now we need to do HTTP POST by clicking on Tools | HTTP Post Utility. Here we need to post the URL appended with HelloWorld and also the message we need to post. The screenshot is given below -

Step 10: 
The moment you click on Submit, we should find the same message in the response like below -

As you can see, the message we submitted as request, the same message we received as response. So our Integration is successful and the best part is that we only did configuration for this Integration process.

In my next post, I will explain how we can configure WebSphere Cast Iron to integrate with to fetch CSV file from FTP server and create data into Salesforce.

Please provide your feedback. Thanks.


  1. Replies
    1. You welcome Priya. Please let me know if you need any details. Thanks.