Skip to Content
Former Member
Sep 09, 2016 at 12:52 PM

Converting Binary payload(in a field) to .docx and .xlsx and send it as an attachment with SOAP adapter.


Hello PI team,

I need guidance in a synchronous scenario ; SOAP to Proxy.

A call is placed from sender SOAP channel to fetch a set of documents from ECC system. ECC system in turn calls 'opentext' server to fetch the required document.

The fetched document in Binary format is sent as a value of a field named 'List' in response payload to PI. In PI this binary data is decoded with base64 decoder and content type used is either for docx or xslx or PDF depending on the file fetched.

This converted file is send as an attachment in the response message of SOAP call.

PDF conversion and attachment is working fine.

Issue lies while converting the binary to docx and xlsx.

For docx , if content type:

  1. application/vnd.openxmlformats-officedocument.

then the attachment created is Attachment.bin not Attachment.doc

If content type = application/msword

then attachment created is Attachment.doc, it open properly but after two pop ups:



For xlsx, for any of the content type :

  1. application/msexcel ,
  2. application/ms-excel ,
  3. application/,
  4. application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

the attachment in the response is getting created as Attachment.bin not attachment.xls/attachment.xlsx. .

Required is attachment.docx and attachment.xlsx in the response payload

Please suggest!

Thank You.

Indu Khurana.


second popup.jpg (27.3 kB)
first pop up.jpg (15.2 kB)
first pop up.jpg (15.2 kB)
second popup.jpg (27.3 kB)