on 09-21-2013 10:54 AM
I am new to XSLT and trying to add fields from XML structure to XSLT Structure for mapping in SAP PI. Could you please help on this.
XML Structure(Code)
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/04/secext">
- <SOAP-ENV:Body>
<s159Response xmlns="http://www.lichtsinfotech.com/Schema/Personal/RetailParty/aaaa">
<s59Result>
<ResultCondition xmlns="http://www.lichtsinfotech.com/Schema/Infrastructure/SOAP">
<SeverityCode>0</SeverityCode>
</ResultCondition>
</S59Result>
<AdditionalDataIn>0</AdditionalDataIn>
<AddressStaticData>
<AddressTownNm>INDIA</AddressTownNm>
<OutPostCd>AE11</OutPostCd>
<InPostCd>1NA</InPostCd>
</AddressStaticData>
<AddressMatches>
<OrganisationNm>SINGAPORE</OrganisationNm>
<BuildingNo>45</BuildingNo>
<AddressLinePaf>
<AddressLineTx>SHORTLAND STREET</AddressLineTx>
</AddressLinePaf>
<DelivPointSuffixCd>2B</DelivPointSuffixCd>
</AddressMatches>
</S159Response>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
XSLT Code where required to update
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes" indent="yes"/>
<xsl:template match="*">
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns="urn:hl7-org:v3">
<soapenv:Header/>
<soapenv:Body>
<xsl:value-of select="*"/>.
</soapenv:Body>
</soapenv:Envelope>
</xsl:template>
</xsl:stylesheet>
Please update it and post the code. Please help on this.
Regards,
Venkat.
Hi Venkat,
Refer the below link
http://scn.sap.com/thread/3260800
http://saptechnical.com/Tutorials/XI/XSLT/page1.htm
Regards
Bhargava krishna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkat,
IMO, update of XSLT code is not required. Run the interface after adding the fields in the structure.
It should work fine.
Ambrish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.