Skip to content

Instantly share code, notes, and snippets.

@DinoChiesa
Created June 5, 2017 23:22
Show Gist options
  • Save DinoChiesa/6ecf0486c63784b8d3a09a0bffc6b182 to your computer and use it in GitHub Desktop.
Save DinoChiesa/6ecf0486c63784b8d3a09a0bffc6b182 to your computer and use it in GitHub Desktop.
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
version="1.0">
<xsl:output method="xml"
omit-xml-declaration="yes"
indent="yes"/>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="soap:Header">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
<!-- to be inserted into soap:Header tag -->
<ut:reqCode xmlns:ut="temp.org">
<ut:reqInfo>information from request</ut:reqInfo>
</ut:reqCode>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment