cancel
Showing results for 
Search instead for 
Did you mean: 

Rename SOAP attachments on Receiver side

Former Member
0 Kudos

Hello Experts

I have a synchronous scenario where File  <-> PI <--> SOAP, where I try to retrieve attachments from target system and create a file.

However the name in the attachments received from target system are not being retained. I used the code snippet from blog: Retaining SOAP Adapter Attachment Names in my response mapping (Sys2 -> Sys1) and it doesn't seem to help. Any pointers?

Thanks

Jaya

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184720
Active Contributor
0 Kudos

Hi Jaya - Never tried with sync scenarios but

I hope you handled the content type as explained in the blog..

1) Code for textual attachments e.g., XML, flat etc.. with required encoding e.g., UTF-8

contentType = contentType + ";charset = \"UTF-8\";"+ "name=\"" + attachmentID + "\"";


2) Code for binary attachments e.g., pdf's, images etc..:

contentType = contentType + ";"+ "name=\"" + attachmentID + "\"";

and "Read Attachments" is checked the operation mapping...