Hi Renjith, I am not that sure about the error you are getting on the EPR, but if you are not going to specify the source, then you need to change the XSLT a little bit more in order to identically transform the element with changing the NS only.
authenticate, Envelope: <?xml version='1.0' encoding='utf-8'?> <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:Body> <authenticate xmlns="http://developer.intuit.com/"> <strUserName>test</strUserName> <strPassword>test</strPassword> </authenticate> </soap:Body> </soap:Envelope> Note: I avoid using source option in xslt , since I read somewhere that it will take the first element by default if we are not using "source" attribute in the tag. Could you please guide me with this problem?
If you are not going to use the source attr of XSLT mediator, U need to write a full xsl transformation on the message body. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version=" 1.0"> <xsl:template match="*"> <authenticate xmlns="http://developer.intuit.com/"> <strUserName><xsl:value-of select="//authenticate/strUserName::text()"/></strUserName> <strPassword><xsl:value-of select="//authenticate/strPassword::text()"/></strPassword> </authenticate> </xsl:template> </xsl:stylesheet> Can U try with this new XSLT (here I am assuming that the message is in the format of what U pasted earlier only with the NS being different) If this even fails can U please attach the full console log to the mail so that I can see what is going wrong. Thanks, Ruwan -- Ruwan Linton http://www.wso2.org - "Oxygenating the Web Services Platform"
