Hi,
I'm attempting to use the PayloadTransformingInterceptor to transform only the reponse from an endpoint by wrapping it with a "standard" response element, but the resulting response is not what I expected.
As an example, my endpoint is returning the following which will be transformed:
My XSL Stylesheet looks like this:Code:<element>Hello World!</element>
The expected response is this (seen when transforming it through Ant):Code:<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" encoding="UTF-8" indent="yes"/> <xsl:template match="/"> <Response> <xsl:apply-templates/> </Response> </xsl:template> <xsl:template match="@*|node()"> <xsl:copy><xsl:apply-templates select="@*|node()"/></xsl:copy> </xsl:template> </xsl:stylesheet>
But I'm getting this:Code:<?xml version="1.0" encoding="UTF-8"?><Response> <element>Hello World!</element> </Response>
Any suggestions??? Thanks.Code:<?xml version="1.0" encoding="UTF-8"?><Response><Response><Response></Response></Response></Response>
Kevin


Reply With Quote