Hi Team,
We are using an input custom BOD and calling an XA Web Service connection to create an Enterprise Item in Infor XA.
We are able to get the input data but facing an issue to call the Web Service.
We are getting below error.
Message: Adapter test connection failed: Transformation of response document failed. Caused by: org.w3c.dom.DOMException: HIERARCHY_REQUEST_ERR: An attempt was made to insert a node where it is not permitted.
Correlation ID: fa6f7da1-0763-4114-8e66-5e81effea0c8
My Input XML is
<SyncILinkPartXML releaseID="9.2">
<ApplicationArea>
<Sender>
<LogicalID>infor.file.ilinksharedfolder_2</LogicalID>
<ComponentID>External</ComponentID>
<ConfirmationCode>OnError</ConfirmationCode>
</Sender>
<CreationDateTime>2019-01-09T10:08:23.516Z</CreationDateTime>
<BODID>infor.file.ilinksharedfolder_2:1547028503516:39365b06-5552-47c3-938d-cb22822ec858</BODID>
</ApplicationArea>
<DataArea>
<Sync>
<AccountingEntityID/>
<LocationID/>
<ActionCriteria>
<ActionExpression actionCode="Replace"/>
</ActionCriteria>
</Sync>
<ILinkPartXML>
<WindchillData>
<Parts uniqueId="12354">
<TitleBlock>
<ActionCode>Replace</ActionCode>
<ItemNumber>YYUU</ItemNumber>
<ItemName>ilink test
</ItemName>
<Version>0</Version>
<DefaultUnit>PC</DefaultUnit>
<Siteidentifier>PRO</Siteidentifier>
<ImplementationStatus>ALL</ImplementationStatus>
<InventoryFlag>1</InventoryFlag>
<UnitCostDefault>10</UnitCostDefault>
<ItemTypeCode>2-Semi Finish</ItemTypeCode>
<UnitWeight>20</UnitWeight>
<SupplementaryWeightVolumeUnitOfMeasure>GR</SupplementaryWeightVolumeUnitOfMeasure>
<UnitVolume>100</UnitVolume>
<VolumeUnitOfMeasure>D3</VolumeUnitOfMeasure>
<LotSize>1</LotSize>
<LeadTimeCode>P</LeadTimeCode>
<Warehouse>1</Warehouse>
<WarehouseStockLocation>MAIN</WarehouseStockLocation>
</TitleBlock>
</Parts>
</WindchillData>
</ILinkPartXML>
</DataArea>
</SyncILinkPartXML>
and my WS Mapper code (Advanced Transformation) is
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="www.w3.org/.../Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
<!-- change indent to "no" after testing -->
<xsl:template match="DataArea">
<S:Envelope xmlns:S="schemas.xmlsoap.org/.../">
<S:Header/>
<S:Body>
<sys:context xmlns:sys="KPITAS02.kpit.com:36001/.../SystemOperations.xsd">
<sys:sessionHandle xmlns="">*current</sys:sessionHandle>
<sys:workHandle xmlns="">*new</sys:workHandle>
<sys:requestIdleTime xmlns="">30000</sys:requestIdleTime>
</sys:context>
<ent:domainObject xmlns:ent="kpitas02.kpit.com:36001/.../EnterpriseItem.xsd">
<ent:key>
<ent:p_item>
<xsl:value-of select="ILinkPartXML/WindchillData/Parts/TitleBlock/ItemNumber"/>
</ent:p_item>
</ent:key>
<ent:p_description>
<xsl:value-of select="ILinkPartXML/WindchillData/Parts/TitleBlock/ItemNumber"/>
</ent:p_description>
<ent:p_createUser>NGAIKWAD</ent:p_createUser>
</ent:domainObject>
</S:Body>
</S:Envelope>
</xsl:template>
</xsl:stylesheet>
Please guide me if I am making any mistake here.
Thanks & Regards,
Ajit Shinde