Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 845

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

$
0
0

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:

 

1.first pop up.jpg

 

2.second popup.jpg

 

For xlsx, for any of the content type :

  1. application/msexcel ,
  2. application/ms-excel ,
  3. application/vnd.ms-excel,
  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.


Viewing all articles
Browse latest Browse all 845

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>