Hi Aday,
As Raghu already suggested you need to handle CDATA section in your response.
- Create target message type like below and create mapping between web service response and your response message type.
- Map GetWeatherResult to GetWeatherResponse root node and set return as XML for source field like below.
- Create operation mapping between web service response and your response service interface, use below order (First message mapping and second XSLT mapping)
- XSLT mapping code:
<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output omit-xml-declaration="yes" indent="yes" encoding="utf-8"/> <!--Identity template simply copies content forward --> <xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template> <xsl:template match="*"> <xsl:copy> <xsl:apply-templates select="*"/> <xsl:value-of select="substring-after(text(),'?>')" disable-output-escaping="yes"/> </xsl:copy> </xsl:template></xsl:stylesheet>
- Test result from soap UI.
Regards,
Praveen.