Sometimes we may required to change the request header values eg. Content-Type and Accept etc for OSB Business Service request dynamically, this post will explain the steps to modify the header values for a Business Service request.
Login to sbconsole,Create the session and open the message flow of Proxy Service.
Edit the Route to Business Service and Click on add Request Action
Select the Action Type as Communication/Transport Headers and click on Add Headers
Select the Header for that the value needs to be changed and set the corresponding value, here i am changing the Content-Type to application/x-www-form-urlencoded. Click on Save All.
Activate the session and test the service, refer the traces of interface we can see the Content-Type of outbound got changed to application/x-www-form-urlencoded
This post will explain you how to test the REST services using chrome.
Install the REST Console Extension to Chrome.
Open REST Console
Here, i am invoking the REST enabled salesforce login service with OAuth.
Provide the Request URI, Content-Type and Language.
Select the Content-Type of Content Headers as application/x-www-form-urlencoded and provide the request payload.We can also add Authorization, Attachment and Headers to the request.
Click on GET/POST/PUT/DELETE button based on the request method, this will displays the response in the response section.