Question

5
Replies
1996
Views
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
Share this page LinkedIn