This article is from the excellent Blog by oraclefusion1011.
See complete article here -http://oraclefusion1011.blogspot.com/2011/04/11_23.html.It is reproduced here for easy reference only.Couple of times we need to call Rest based services like HTTP Post from OSB/SOAlayer, as of now there is no well defined adapter for this. Most of the times we end upusing POJO for this.The HTTP adapter provided in SOA is quite basic and doesntgenerally fits the requirement like when calling services with complex input data likemulti-mime etc.Here is steps that can be followed , however its completely driven by the requirement andneed to be customized accordingly.Use case :- HTTP Post service that has to be called- Input is multi mime and handshake is through the boundary defined- No ssl or any other security need.Steps:1. Create a Business service in OSBService Type : Messaging ServiceRequest/Response Message Type : TextProtocol : htmlEndpoint URI : http://mysupplier/serviceendpoint/HTTP Request Method : POSTTest this with your multimime input from test console, pass the input in body and Content-Type: multipart/form-data; boundary=scm-shipping-oracle;utf-82. Create proxy based on the business service .Service Type : Messaging ServiceRequest/Response Message Type : TextProtocol : htmlTest this with your multimime input from test console , pass the input in body and Content-Type: Content-Type: multipart/form-data; boundary=scm-shipping-oracle;utf-8- You can add alert here to display the body and attachment data3. Create another proxy to call the proxy created in previous step, I added this to putcustomization logic and to not