This article explains how to include a header parameter in a WebService HTTP REST, and to reverse it on the
metadata to obtain a dynamic header parameter that can be modified in a mapping.
Create a dynamic header parameter :
In the request parameters part, you can define new parameters by clicking on the "+" button.
Specify then the parameter 'HEADER', its name and value:
The value is a test value that will be used when performing a test invocation to retrieve the response of the Web
Service. It will not be stored in the Metadata at the end. The parameter will be added as an HTTP header when
invoking the Web Service.
An HTTP header defined like this will be reversed in the Input Metadata of the Web Service to be able to specify it
dynamically in the future Mappings that will invoke it.
Reverse the data in a metadata :
After reversing the data into the metadata, you will retrieve the header parameter :
Use the header parameter in a mapping :
Then, you can easily affect a new value to this header parameter in a mapping.
Create a static header parameter :
If you want to define an HTTP Header with a fixed value, that will never change and must be transmitted at each
invocation, you have to add a Header parameter like this :