cancel
Showing results for 
Search instead for 
Did you mean: 

Rest Receiver Adapter : extracting synchronous Response header data

former_member192079
Participant
0 Kudos

Dear All,

My technical requirement are same as using blog feature : "PI REST Adapter - Consuming synchronous RESTful service".

Data format in Request/response is XML , no conversion.

The specific demand is , after PUT call i need to read the response message header data for further manipulation in my I flows.

the header information i need is HTTPstatuscode, content type and private id etc. This information comes in Response header only , not in body .

         Based on info i had from documents is that Rest adapter add some specific header info in XI header for response message flow.( Rest --> PI )

but what if need some header data which not given in XI header..? any receiver Rest channel config will help..?  ( response determination)

will Java mapping + dynamic config  will help to extract that header info..?

or atleast HTTP status code available in rest channel logs can be extracted  for both success and failure..?

Warm regards,

Ashu

Accepted Solutions (0)

Answers (1)

Answers (1)

Muniyappan
Active Contributor
0 Kudos

Hi Ashutosh,

it is possible to read the response header.receiver adapter will convert and put it in the dynamic configuration under xi header.

  2179229 - New Feature: Support for processing HTTP result header

Former Member
0 Kudos

Can you please help how we can read this in PI.

Muniyappan
Active Contributor
0 Kudos

have you configured synchronous scenario?

are you able to get the response?

what is your pi version?

in the response message you will find all values.