Question

5
Replies
2046
Views
Close popover
divya dwivedi (divyad71)
Cognizant
divya dwivedi
Cognizant
NL
divyad71 Member since 2015 6 posts
Cognizant
Posted: July 11, 2018
Last activity: July 22, 2019
Closed

Connect REST post method HEADER issue

Hi I have a Connect REST with POST method.
the service expects everything in json (header + request message)

Header has only 2 mapping options in pega map from KEY or CLIPBOARD , I used clipboard.
the final request being sent has the header in XML format
but I want the header to go completely in JSON.

header MAP FROM CLIP BOARD

FINAL OUTPUT example -

{Integration-Header=<?xml version="1.0"?> <pagedata> <pxObjClass>********************</pxObjClass> <SystemInfo> <pxObjClass>********</pxObjClass> <ApplicationName>pega</ApplicationName></SystemInfo> </pagedata> , Content-Type=application/json}

REQUEST MESSAGE- MAP FROM json-

FINAL OUTPUT EXAMPLE-

{"attachmentInfo": [{"attachmentReferenceNumber":"***","attachmentContentType":"File","attachmentName":"BILL","attachmentContent":"***"}],"brand":"BASE"}

***Edited by Moderator Marissa to update platform capability tags***

Data Integration
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.