cancel
Showing results for 
Search instead for 
Did you mean: 

CIDX : ns0 issue in message structure

Former Member
0 Kudos

Dear All,


I am using CIDX standard structure in Source and Target message in a Message Mapping.


The structure i get in the test tab of message mapping is as below:

 
<?xml version="1.0" encoding="UTF-8"?>

<ns0:OrderCreate Version="4.0">

<ns0:Header>

<ns0:ThisDocumentIdentifier>

<ns0:DocumentIdentifier>Batch Number </ns0:DocumentIdentifier>

</ns0:ThisDocumentIdentifier>

<ns0:ThisDocumentDateTime>

<ns0:DateTime DateTimeQualifier="On">2105-10-04T07:59:00-05:00 </ns0:DateTime>

</ns0:ThisDocumentDateTime>

<ns0:From>

<ns0:PartnerInformation>

<ns0:PartnerName> company </ns0:PartnerName>

<ns0:PartnerIdentifier Agency="D-U-N-S">001317452 </ns0:PartnerIdentifier>

</ns0:PartnerInformation>

</ns0:From>

<ns0:To>

<ns0:PartnerInformation>

<ns0:PartnerName>Vendor Company Name </ns0:PartnerName>

<ns0:PartnerIdentifier Agency="AssignedByBuyer">1234567 </ns0:PartnerIdentifier>

</ns0:PartnerInformation>

</ns0:To>

</ns0:Header>


and so on.



But from the source the data is coming in the below structure (without ns0)


<?xml version="1.0" encoding = "UTF-8"?>

<OrderCreate Version="4.0">

<Header>

<ThisDocumentIdentifier>

<DocumentIdentifier>123</DocumentIdentifier>

</ThisDocumentIdentifier>

<ThisDocumentDateTime>

<DateTime DateTimeQualifier="On">2113-02-08T10:05:00-05:00</DateTime>

</ThisDocumentDateTime>

<From>

<PartnerInformation>

<PartnerName>hello</PartnerName>

<PartnerIdentifier Agency="AssignedByBuyer">hello</PartnerIdentifier>

</PartnerInformation>

</From>

<To>

<PartnerInformation>

<PartnerName>goodby</PartnerName>

<PartnerIdentifier Agency="AssignedByBuyer">PM</PartnerIdentifier>

</PartnerInformation>

</To>

</Header>

<OrderCreateBody>

<OrderCreateProperties>

<PurchaseOrderNumber>

and so on...


So message is failing in PI.


Please help me with the solution.


Please help me letting know howto remove this ns0 tag from the structure in PI.


regards,

Anuj

Accepted Solutions (0)

Answers (1)

Answers (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hello,

Have you tried using the XMLAnonymizerBean?

http://help.sap.com/saphelp_nwpi711/helpdata/en/84/2e3842cd38f83ae10000000a1550b0/frameset.htm

In your message type, can you delete the entry under XML Namespace?

Hope this helps,

Mark