There is no way to upload to original file, so here is the content:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dp="http://www.datapower.com/extensions"
xmlns:dpconfig="http://www.datapower.com/param/config"
xmlns:func="http://exslt.org/functions"
extension-element-prefixes="dp">
<dp:input-mapping href="store:///pkcs7-convert-input.ffd" type="ffd"/>
<xsl:template match="/">
<xsl:variable name="newMQMDStr">
<MQMD>
<CorrelId>
<xsl:value-of select="dp:http-request-header('CorrelationId')"/>
</CorrelId>
</MQMD>
</xsl:variable>
<!-- Setting MQMD header -->
<xsl:variable name="mqHeaders">
<header name="MQMD">
<!-- serialize the header so that it can be set -->
<dp:serialize select="$newMQMDStr" omit-xml-decl="yes"/>
</header>
</xsl:variable>
<xsl:variable name="resultMQ">
<xsl:variable name="target" select="concat('dpmqfte://qmg-ebci-1-2/?DestAgent=AGENT2&DestQM=qmg-ebci-1-2&DestFile=archive.bin&RequestQueue=',dp:variable('var://context/b2bContext/archivingQueue'))"/>
<dp:url-open target="{$target}" response="binaryNode" http-headers="$mqHeaders">
<xsl:copy-of select="/object/message/node()"/>
</dp:url-open>
</xsl:variable>
<dp:set-variable name="'var://context/service/MQResult'" value="$resultMQ"/>
<dp:set-variable name="'var://context/service/MQResponseCode'" value="string($resultMQ/result/responsecode)"/>
<dp:set-variable name="'var://context/service/MQResponseheader'" value="dp:parse(string($resultMQ/result/headers/header))"/>
<xsl:variable name="responseMQMD" select="dp:parse(string($resultMQ/result/headers/header))"/>
<xsl:variable name="MsgId" select="$responseMQMD/MQMD/MsgId"/>
<dp:set-variable name="'var://context/service/MQMsgId'" value="string($MsgId)"/>
<dp:set-variable name="'var://context/service/mycontent'" value="concat('var://context/', dp:variable('var://service/multistep/input-context-name'))"/>
<xsl:variable name="contentname" select="dp:variable('var://context/service/mycontent')"/>
<dp:set-variable name="'var://context/service/mydpcontent'" value="$contentname"/>
<xsl:variable name="payload" select="dp:variable($contentname)"/>
<xsl:variable name="msg" select="dp:binaryNodeToString($payload)"/>
<dp:set-variable name="'var://context/service/contentmsg'" value="string($msg)"/>
<dp:set-variable name="'var://context/service/contentmsgSize'" value="string-length($msg)"/>
</xsl:template>
</xsl:stylesheet>
#DataPower#Support#SupportMigration