how to read multipart form data from service rest in pega
Hi Team,
There is a multipart form data request coming in for which we have created a service rest. When we run the service from SOAP UI, by attaching a file , it gets read properly as we have defined the "pyRequestAttachmentPage" of class - Data-ServiceMessage. We can see attachment content , name etc. in the page. Where as, when the third party team is trying to send the request , they are doing Base64 encoding at their side and sending the attachment content in a string as attached in the file. They have 1 part as "Payload" where the entire JSON is there, under content page and attachment page (some data of attachment file) and 2nd part as "attachment" where the attachment content is sent.
Now, at Pega end, we can read the JSON and map it to a page etc. but how do we read the Part2 of the request (attachment content). Its not coming in the "pyRequestAttachmentPage".
Kindly suggest.
Thanks,
Ritika
***Edited by Moderator Marije to add Capability tags***