How to extract value from soap request in xslt sheet? -
i have managed fields under sar element in following xslt stylesheet want iterate till 'file' tag , retrieve value.
following soap request , xslt stylesheet.
please me build xslt stylesheet can iterate untill 'file' element , retrieve value.
soap request:
<soap:envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:xsd="http://www.w3.org/2001/xmlschema"> <soap:header> <nicheheaders xmlns="http://schemas.microsoft.com/nichelite/soap/"/> </nicheheaders> </soap:header> <soap:body> <sendsar xmlns="http://schemas.microsoft.com/sendsar/soap/"/> <sardetails> <applicationid ="anxxxxxxxx"/> <lifeassured="two"/> <partyid="2bchg"/> <sar> <filetype="pdf"/> <filename="abcd"/> <file> <insert base64 encoded file here(actual base64 encoded data..since content large unable give exact value)> </file> </sar> </sardetails> </sendsar> </soap:body> </soap:envelope>
xslt stylesheet
<xsl:stylesheet version="2.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:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/xmlschema-instance" xmlns:nsl="http://schemas.microsoft.com/sharepoint/soap/"> <xsl:output method="xml" indent="yes"/> <xsl:template match="soap:envelope/soap:body/*[1]/*[1]/*[4]/*[3]"> <xsl:copy-of select="@*" /> </xsl:template> </xsl:stylesheet>
Comments
Post a Comment