xsl-list
[Top] [All Lists]

Adding tag to SOAP

2006-02-07 23:30:30
Hi, 

I have a SOAP message to which I want to add a tag.
However, the message is output as is without the tag.

Here is the xsl:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
<xsl:output method="xml" />
<xsl:template match="/">
   <xsl:copy-of select="." />
</xsl:template>
<xsl:template match="po">
<xsl:copy>
  <Id>a new id</Id>
  </xsl:copy>
</xsl:template>
</xsl:stylesheet>


This is the message:

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
        <soapenv:Header>
                <wsse:Security
xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext";>
                </wsse:Security>
                <Action>transfer</Action>
        </soapenv:Header>
        <soapenv:Body>
                <ns1:poSubmit
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:ns1="urn:po-submit">
                        <po xsi:type="xsd:string">
                        <PORequest>
                        <testNum>3</testNum>
                        <priceList>953</priceList>
                        <quantity>1</quantity>
                        <PONumber></PONumber>
                        <CreditCardNos>4178908723456781</CreditCardNos>
                        <Amount>56091.23</Amount>
                        <RequestedShipDate>020606</RequestedShipDate>
                        </PORequest>
                        </po>
                </ns1:poSubmit>
        </soapenv:Body>
</soapenv:Envelope>

Requirement is the below:


<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
        <soapenv:Header>
                <wsse:Security
xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext";>
                </wsse:Security>
                <Action>transfer</Action>
        </soapenv:Header>
        <soapenv:Body>
                <ns1:poSubmit
soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";
xmlns:ns1="urn:po-submit">
                        <po xsi:type="xsd:string">
                        <Id>a new id</Id>
                        <PORequest>
                        <testNum>3</testNum>
                        <priceList>953</priceList>
                        <quantity>1</quantity>
                        <PONumber></PONumber>
                        <CreditCardNos>4178908723456781</CreditCardNos>
                        <Amount>56091.23</Amount>
                        <RequestedShipDate>020606</RequestedShipDate>
                        </PORequest>
                        </po>
                </ns1:poSubmit>
        </soapenv:Body>
</soapenv:Envelope>

Thanks
gumnam

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>