AnsweredAssumed Answered

After combine XML documents Header /body parameters are missing

Question asked by manoj.satpathy on Jun 17, 2018
Latest reply on Jun 19, 2018 by manoj.satpathy

Hi All'

When I am combine XML documents , the header and few body parameters are missing in the combined documents

 

Document-1

<Envelope>
<Header>FixedValue</Header>
<Body>
<SetCodes>
<apiKey>FixedValue</apiKey>
 <Codes>FixedValue</Codes>
<data>
<OrgCodes>
<OrgCode>
<Type>ABC</Type>
<CostCodeNum>11111</CostCodeNum>
<Description>Test-1</Description>
<ParentCode></ParentCode>
<OrgCode>
<OrgCodes>
</data>

</SetCodes>
</Body>
</Envelope>

 

Document-2

<Envelope>
<Header>FixedValue</Header>
<Body>
<SetCodes>
<apiKey>FixedValue</apiKey>
<Codes>FixedValue</Codes>
<data>
<OrgCodes>
<OrgCode>
<Type>ABC</Type>
<CostCodeNum>222222</CostCodeNum>
<Description>Test-2</Description>
<ParentCode></ParentCode>
</OrgCode>
</OrgCodes>
</data>

</SetCodes>
</Body>
</Envelope>

 

I have combined the XML document with <OrgCode> element using the Data process shape.  

The document looks like , 

 

<Envelope>
<Body>
<SetCodes>
<data>
<OrgCodes>
<OrgCode>
<Type>ABC</Type>
<CostCodeNum>11111</CostCodeNum>
<Description>Test-1</Description>
<ParentCode></ParentCode>
</OrgCode>
<OrgCode>
<Type>XYZ</Type>
<CostCodeNum>222222</CostCodeNum>
<Description>Test-1</Description>
<ParentCode></ParentCode>
</OrgCode>
</OrgCodes>

</data>

</SetCodes>
</Body>
</Envelope>

 

But What I am looking at is 

 

<Envelope>
<Header>FixedValue</Header> --------> Missed  after combine
<Body>
<SetCodes>
<apiKey>FixedValue</apiKey>--------> Missed  after combine
<Codes>FixedValue</Codes> --------> Missed  after combine
<data>
<OrgCodes>
<OrgCode>
<Type>ABC</Type>
<CostCodeNum>11111</CostCodeNum>
<Description>Test-1</Description>
<ParentCode></ParentCode>
</OrgCode>
<OrgCode>
<Type>XYZ</Type>
<CostCodeNum>222222</CostCodeNum>
<Description>Test-1</Description>
<ParentCode></ParentCode>
</OrgCode>
</OrgCodes>
</data>

</SetCodes>

</Body>
</Envelope>

 

 

Please share your thought how to address this issue. 

 

 

Regards,

Manoj Satpathy

Outcomes