|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Mapping Node and HTTPHeaders (or Root access) |
« View previous topic :: View next topic » |
Author |
Message
|
lonesheep |
Posted: Thu Oct 05, 2017 5:02 am Post subject: Mapping Node and HTTPHeaders (or Root access) |
|
|
Novice
Joined: 12 Sep 2017 Posts: 21
|
Hi,
I'm using the IIB10 and have created a REST API interface.
One of the input parameters to the service is a custom HTTP header, of type "array" containing a list of strings; swagger definition;
name: X-SomeInfo
in: header
required: false
type: array
items
type: string
However, there seems to be some limitation in the IIB 10 framework which stops me from accessing this "array" in the REST parameters in the mapping node. Basic types such as string, int etc... are visible in the Mapping Node.
The information is being passed into the service as I can see in when outputting ${Root} to a trace, and can also access it via ESQL via;
InputRoot.HttpInputHeader."X-SomeInfo"
Is there any way to get at this information within a mapping node, either by accessing the Root object or custom Java/Esql?
Many thanks in advance. |
|
Back to top |
|
 |
martinb |
Posted: Thu Oct 05, 2017 6:09 am Post subject: |
|
|
Master
Joined: 09 Nov 2006 Posts: 210 Location: UK
|
Hi,
Yes the ability to access the transport headers has been in the Graphical Data Mapper since it was added in v8.
By default when you create a Map only the Properties and Body folders of the Message Assembly are added. To add additional Message Assembly folders. such as "HttpInputHeader", right click on the "Message Assembly" in the Map editor and use the menu " Add or remove headers and folders".
See
- Customizing a message map to include a message assembly component
- Mapping transport headers |
|
Back to top |
|
 |
lonesheep |
Posted: Thu Oct 05, 2017 6:12 am Post subject: |
|
|
Novice
Joined: 12 Sep 2017 Posts: 21
|
many thanks....its easy when you know how! |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|