Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Dobby1
Contributor III
Contributor III

tSOAP response has base64Binary encoded data

I can make a successful call to a SOAP webservice with tSOAP component but the problem is that it returns an Excel document as a base64Binary data and I don't know how to either save the file or read the contents of the Excel file. Here's a sample of the response:

 

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns0683p000009M9p6.pngOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="rollins-accommodate.symplicity.com/ws/report_api.php" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns0683p000009M9p6.pngOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
<SOAP-ENV:Body>
<ns1:getReportExcelResponse>
<excel_link xsi:type="xsd:base64Binary">0M8R4KGxGuEAAAAAAAAAAAAAAAAAAAAAOwADAP7/CQAGAAAAAAAAAAAAAAAkAAAAsREAAAAAAAAAEAAAAAAAAAEAAAD+////AAAAALIRAACzEQAAtBEAALURAAC2EQAAtxEAALgRAAC5EQAAuhEAALsRAAC8EQAAvREAAL4RAAC/EQAAwBEAAMERAADCEQAAwxEAAMQRAADFEQAAxhEAAMcRAADIEQAAyREAAMoRAADLEQAAzBEAAM0RAADOEQAAzxEAANARAADREQAA0hEAANMRAADUEQAA1REAAP////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8JCBAAAAYFALsNzAdBAAAABgAAAEIAAgDkBD0AEgAAAAAAvCVyFTgAAAAAAAEAWAIiAAIAAAAxABUAyAAAAP9/kAEAAAAAAAAFAEFyaWFsMQAVAMgAAAD/f5ABAAAAAAAABQBBcmlhbDEAFQDIAAAA/3+QAQAAAAAA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GbMAMzM/wAAAIAA/wD/AP//AAAA//8AgACAAIAAAAAAgIAAAAD/AADM/wDM//8AzP/MAP//mQCZzP/v////7////9/////f////3////9/////f////3////9/////f////3////9/////f////3////9/////f////3////9/////f////3////9/////f////3////9/////f////3////9/////f////3////9/////f////3////9/////f////3////9/////f////3///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8=</excel_link>
</ns1:getReportExcelResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Labels (3)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Hi
Take a look at this thread, use tExtractXMLFiled to extract the body from response, and then decode base64Binary to byte array on a tJavaRow, and convert byte array to a file.
https://community.talend.com/t5/Design-and-Development/How-do-I-encode-a-csv-file-to-base64/m-p/4229...

Regards
Shong

View solution in original post

1 Reply
Anonymous
Not applicable

Hi
Take a look at this thread, use tExtractXMLFiled to extract the body from response, and then decode base64Binary to byte array on a tJavaRow, and convert byte array to a file.
https://community.talend.com/t5/Design-and-Development/How-do-I-encode-a-csv-file-to-base64/m-p/4229...

Regards
Shong