Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
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/" xmlnsOAP-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" xmlns
OAP-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+QAQAAAAAAAAUAQXJpYWwxABUAyAAAAP9/kAEAAAAAAAAFAEFyaWFsMQAVAMgAAAD/f5ABAAAAAAAABQBBcmlhbDEAFQDIAAAADACQAQAAAQAAAAUAQXJpYWwxABUA3AAAAAwA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/////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>