Skip to content

Instantly share code, notes, and snippets.

@yamanyar
Created September 5, 2013 08:57
Show Gist options
  • Save yamanyar/6447686 to your computer and use it in GitHub Desktop.
Save yamanyar/6447686 to your computer and use it in GitHub Desktop.
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dp="http://www.datapower.com/extensions"
extension-element-prefixes="dp"
>
<dp:input-mapping href="store:///pkcs7-convert-input.ffd" type="ffd"/>
<xsl:template match="/">
<xsl:variable name="response">
<xsl:value-of select="dp:binary-encode(/object/message)"/>
</xsl:variable>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<int:requestJournalReturn xmlns:int="http://secret.company.com">
<int:content>
<xsl:value-of select="$response"/>
</int:content>
<int:status>200</int:status>
</int:requestJournalReturn>
</env:Body>
</env:Envelope>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment