Book Image

Oracle Service Bus 11g Development Cookbook

Book Image

Oracle Service Bus 11g Development Cookbook

Overview of this book

Oracle Service Bus 11g is a scalable SOA integration platform that delivers an efficient, standards-based infrastructure for high-volume, mission critical SOA environments. It is designed to connect, mediate, and manage interactions between heterogeneous services, legacy applications, packaged solutions and multiple Enterprise Service Bus (ESB) instances across an enterprise-wide service network. Oracle Service Bus is a core component in the Oracle SOA Suite as a backbone for SOA messaging. This practical cookbook shows you how to develop service and message-oriented (integration) solutions on the Oracle Service Bus 11g. Packed with over 80 task-based and immediately reusable recipes, this book starts by showing you how to create a basic OSB service and work efficiently and effectively with OSB. The book then dives into topics such as messaging with JMS transport, using EJB and JEJB transport, HTTP transport and Poller transports, communicating with the database, communicating with SOA Suite and Reliable Message Processing amongst others. The last two chapters discuss how to achieve message and transport-level security on the OSB.
Table of Contents (19 chapters)
Oracle Service Bus 11g Development Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Using HTTP transport to implement messaging over HTTP


Instead of sending SOAP over HTTP, the HTTP transport can be used for doing simple messaging over HTTP. In this recipe, we will show how easy it is to implement a proxy service on the OSB accepting text/XML messages:

How to do it...

We will first create a proxy service that accepts any text-based messages over HTTP. In Eclipse OEPE, perform the following steps:

  1. Create a new project and name it using-http-for-msg-over-http.

  2. Create a proxy folder.

  3. In the proxy folder, create a new proxy service and name it TextOverHttp.

  4. On the General tab select Messaging Service for the Service Type.

  5. Navigate to the Messaging tab and select Text for the Request Message Type.

  6. Leave the Response Message Type to None.

  7. Navigate to the Message Flow tab and insert a Pipeline Pair node named HandleMessagePipeline.

  8. Insert a Stage node into the Pipeline Pair and name it LogStage.

  9. Insert a Log action into the LogStage.

  10. On the Properties tab of the Log action, click <Expression...