Mapping multi format REST response into PDF format
I am receiving the following response from the REST service. The response contain two different format(json and PDF-Binary) at the same time. I want to map the PDF part into response. The solutions I applied;
- I tried to give 2 different headers in the Connect-REST/Methods, since the two different formats are separated with the tags "Content-Type: application/json" and "Content-Type: application/pdf" in the response , that throws exception.
-I tried to give one the header as "Content-Type: multipart/related" for two different formatting, not successful mapping.
- In order to get the whole response and split the required part, I tried to save the whole content in .pyNote however Pega saves the content (appears to be) in BLOB format.
My question is does Pega support mapping the response in two different formatting? Or is there a workaround in my case?
There are several posts about attachments in REST and SOAP connectors, so I may be able to find something more specific to Connect-REST response handling. As you can see from HELP files, Pega supports this.