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:
Create a new project and name it
using-http-for-msg-over-http
.Create a
proxy
folder.In the
proxy
folder, create a new proxy service and name itTextOverHttp
.On the General tab select Messaging Service for the Service Type.
Navigate to the Messaging tab and select Text for the Request Message Type.
Leave the Response Message Type to None.
Navigate to the Message Flow tab and insert a Pipeline Pair node named HandleMessagePipeline.
Insert a Stage node into the Pipeline Pair and name it
LogStage
.Insert a Log action into the LogStage.
On the Properties tab of the Log action, click <Expression...