[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

unnecessary Soap elements

Subject: unnecessary Soap elements
From: jaya vardhani <jayavardhani@xxxxxxxxxxx>
Date: Fri, 28 Oct 2005 11:02:34 +0100 (BST)
soap elements
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.