on 01-10-2012 8:51 PM
Hi Gurus,
I am trying to add a Namespace to inbound xml and I wrote a simple XSLT mapping as below, when I execute this using XML spy or in Operation mapping manually it is working fine and giving me output as expected but at runtime it is not executing, I am getting same input xml as output xml and receiver agreement is failing...
Appreciate your thoughts..
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-8"/>
<xsl:template match="*">
<ns0:SalesXmlExtended xmlns:ns0="urn:/company.com/H/sndr">
<xsl:copy-of select="//SalesReportInfo"/>
</ns0:SalesXmlExtended>
</xsl:template>
</xsl:stylesheet>
input xml is as below....
<?xml version="1.0" encoding="UTF-8"?>
<SalesXmlExtended>
<SalesReportInfo>
<SalesReport>
<Detail>
<deptNum>0270</deptNum> etc...
output I am getting in XMLSpy and OM is as below, this is exactly what I need...
<?xml version="1.0" encoding="UTF-8"?>
<ns0:SalesXmlExtended xmlns:ns0="urn:/company.com/H/sndr">
<SalesReportInfo>
<SalesReport>
<Detail>
<deptNum>0270</deptNum>
.....
Thanks...
Sukarna...
If your mapping is successful in OM, you should not have issue mostly with mapping runtime. Check the pipeline steps and see what error do you get in the mapping step. Also check any configuration issue with the receiver communication channel.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Baskar,
Yeah, that is what my issue is , it shouldn't be failing but it is...
I tried by manipulating the required namespace in the input file and it is working fine with out any errors....so I am guessing the XSLT is not being executed...
I am getting below error which is valid because the transformation is not happening
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Technical Routing --> <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
<SAP:Category>XIServer</SAP:Category>
<SAP:Code area="OUTBINDING">CO_TXT_OUTBINDING_ERROR</SAP:Code>
<SAP:P1>-BS_HOUSE_OF_FRASER_DEV</SAP:P1><SAP:P2>-BD1_100,urn:.com/HoF/POS/EOD/sndr.SI_Out_HoFSales_XML</SAP:P2>
<SAP:P3/>
<SAP:P4/>
<SAP:AdditionalText>No standard agreement found for , BS_HOUSE_OF_FRASER_DEV, , BD1_100, urn:/HoF/POS/EOD/sndr, SI_Out_HoFSales_XML</SAP:AdditionalText
><SAP:Stack>Problem occurred in receiver agreement for sender -BS_HOUSE_OF_FRASER_DEV to receiver -
>so I am guessing the XSLT is not being executed...
Can you check the payload during mapping step and see your namespace added or not in the payload? As you know mapping step takes place before receiver agreement. Also do configuration test in the ID and see any problem with your sender and business systems or services configured.
Hi Bhaskar,
I tried to update this thread yesterday couple of times but it timed out, I don't know why.
As you suggested, I ran the configuration test and found that the Interface determination is not recognized so operation mapping is ignored saying not found and sending the same XML with out transformation to Receiver determination where it is failing.
When I send an XML with the required namespace then it is working fine. I am guessing that the Interface determination is trying to compare incoming XML namespace with the PI namespace and rejecting the interface determination.
Edited by: Chirumamilla Sukarna on Jan 12, 2012 5:26 PM
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.