Hi List,
My request xml is as follows:
<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>
<SubmitRequestResponse xmlns="urn:Fiserv.CWS">
<SubmitRequestResult>
<fiAPI>
<Response TypeOfResponse="ERROR">
</Response>
</fiAPI>
</SubmitRequestResult>
</SubmitRequestResponse>
</soap:Body>
</soap:Envelope>
My xsl is :
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:urn="urn:Fiserv.CWS"
xmlns:fi="http://integration.fiapi.com"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
exclude-result-prefixes="urn fi soap >
<xsl:strip-space elements="*"/>
<xsl:output method="xml" omit-xml-declaration="no"
indent="yes"/>
<!-- Convert XML to XML -->
<xsl:template
match="soap:Envelope/soap:Body/urn:SubmitRequestResponseurn:SubmitRequestResponse">
<xsl:element name="selectreply">
<xsl:attribute name="application"><xsl:value-of
select="$appType"/></xsl:attribute>
<xsl:attribute name="sessionId"><xsl:value-of
select="urn:SubmitRequestResult/fi:fiAPI/fi:fiHeader/fi:Client/fi:SessionID"/></xsl:attribute>
<xsl:call-template name="status"/>
<xsl:element name="selection"/>
</xsl:element>
</xsl:template>
<!-- Template for building status element -->
<xsl:template name="status">
<xsl:param name="code"
select="urn:SubmitRequestResult/fi:fiAPI/fi:Response/fi:Status/fi:StatusCode"/>
<xsl:variable name="desc">
.
.
</xsl:variable>
<xsl:element name="status">
<xsl:attribute name="code"><xsl:value-of
select="$code"/></xsl:attribute>
<xsl:attribute name="text"><xsl:value-of
select="$desc"/></xsl:attribute>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
My Response xml is :
<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>
<selectreply sessionId="">
<status code="" text="" />
<selection />
</selectreply>
</soap:Body>
</soap:Envelope>
My response xml should start from
<selectreply> element. But i am getting the soap
elemnts also. Please provide me a solution.
Thanks&Regards,
Jaya Vardhani M.
__________________________________________________________
Enjoy this Diwali with Y! India Click here
http://in.promos.yahoo.com/fabmall/index.html
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--