ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Mapping Node and HTTPHeaders (or Root access)

Post new topic  Reply to topic
 Mapping Node and HTTPHeaders (or Root access) « View previous topic :: View next topic » 
Author Message
lonesheep
PostPosted: Thu Oct 05, 2017 5:02 am    Post subject: Mapping Node and HTTPHeaders (or Root access) Reply with quote

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
View user's profile Send private message
martinb
PostPosted: Thu Oct 05, 2017 6:09 am    Post subject: Reply with quote

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
View user's profile Send private message
lonesheep
PostPosted: Thu Oct 05, 2017 6:12 am    Post subject: Reply with quote

Novice

Joined: 12 Sep 2017
Posts: 21

many thanks....its easy when you know how!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Mapping Node and HTTPHeaders (or Root access)
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.