Tuesday, December 10, 2013

Modifying the Request Headers of a OSB Business Service

Modifying the Request Headers of a OSB Business Service

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.

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


2 comments:

  1. Hi
    In my proxy I get the JNDI as a prarmeter.
    So, I use Transport Header, But in the list of name, there isn't any "JNDI"...
    Thus, I want to use the "Other" option the declare "JNDI" as user-defined.
    How do I write the right declaration for "JNDI" ?

    Thanks in advanced,
    Elad

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete