Problem Statement: We have created a MPGW service to call multiple backends, Backend service returns the response with an attachment, As DataPower doest support attachment using Result action (with multiple output), We are calling backend sequentially and storing resposnes(payload and attachment in IDG directory) and later creating attachment by reading the files stored in IDG directory. We are able to handle attachment when attachment size is in few MB, but not working when attachment size is 100+ MB
Note: We are using IDG: 2018.4.1
Code snippet:
Not working: when trying to read File 1(file size is 114,694,013)
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" exclude-result-prefixes="dp str saml soap xsi" extension-element-prefixes="dp" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dp="http://www.datapower.com/extensions" xmlns:str="http://exslt.org/strings" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://www.w3.org/2005/08/addressing">
<xsl:output method="xml" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:copy-of select="document('local:///GetAttachments/Files/ test1-494c-99ec-65556c190888.xml')" />
</Result>
</xsl:template>
</xsl:stylesheet>
Working: when trying to read File 2(file size is 17,171)
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" exclude-result-prefixes="dp str saml soap xsi" extension-element-prefixes="dp" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:dp="http://www.datapower.com/extensions" xmlns:str="http://exslt.org/strings" xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://www.w3.org/2005/08/addressing">
<xsl:output method="xml" encoding="UTF-8" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="/">
<xsl:copy-of select="document('local:///GetAttachments/Files/ test2-494c-99ec-65556c190888.xml')" />
</Result>
</xsl:template>
</xsl:stylesheet>
We also tried SOMA call to read the file but did not work
SOMA Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:man="http://www.datapower.com/schemas/management">
<soapenv:Header/>
<soapenv:Body>
<man:request domain="stage">
<man:get-file name="'local:///GetAttachments/Files/ test1-494c-99ec-65556c190888.xml"/> </man:request> </soapenv:Body></soapenv:Envelope>
#DataPower#Support#SupportMigration