Hi All,
Can someone please help me here. This is my source XML.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://www.test.com/v2" xmlns:v21="http://www.test.com/v21" xmlns:v1="http://www.test.com/v1">
<soapenv:Header>
<v2:XHeader>
<v2:Name>name</v2:Name>
<v2:Id>id</v2:Id>
</v2:XHeader>
</soapenv:Header>
<soapenv:Body>
<v21:Info v21:version="?">
<v21:Code>code</v21:Code>
</v21:Info>
</soapenv:Body>
</soapenv:Envelope>
Here the value of Name and Id will be the system name which will send the data. So when sending the response back I need to send the same details what is sent by source.
This is my XSLT mapping . Can some one please help me to change this so that the Name and Id can be stored in mapping and again sent back when sending the response. I am not sure how we can do this in XSLT mapping.Now I am sending it to some field in ECC but the requirement is to store it in PI and send it back in response. Can someplease please tell me how I can store this in XSLT mapping here.
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v2="http://www.test.com/v2" xmlns:v21="http://www.test.com/v21" exclude-result-prefixes="v2 v21 soapenv">
<xsl:template match="./soapenv:Envelope">
<ns1:MaterialERPBasicDataCreateRequestMessage_sync xmlns:ns1="http://sap.com/xi/SAPGlobal/Global">
<MessageHeader>
<ID>
<xsl:value-of select="./soapenv:Header/v2:XHeader/v2:Name"/>
</ID>
<UUID>
<xsl:value-of select="./soapenv:Header/v2:XHeader/v2:Id"/>
</UUID>
</MessageHeader>
<Material>
<TypeCode>
<xsl:value-of select="./soapenv:Body/v21:Info/v21:Code"/>
</TypeCode>
</Material>
</ns1:MaterialERPBasicDataCreateRequestMessage_sync>
</xsl:template>
</xsl:stylesheet>