cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with XML Tags

Former Member
0 Kudos

Hi All,

The XML PI is expecting is

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

<ns0:MT_TAC xmlns:ns0="urn://BLSWebsite/CreateServiceOrder">

<TAC>

<TACHEADER>

<FILETYPE>ZNSMORDER</FILETYPE>

<FILEID>090730.12014</FILEID>

<VERSION>1.0</VERSION>

</TACHEADER>

<ZNSMORDER>

<HEADER>

<NOTIFICATIONNO>na03909302</NOTIFICATIONNO>

<CUSTOMERNO>8510656</CUSTOMERNO>

<CEDROP>CE847452</CEDROP>

<COMMENTS>Need copy of hppc v7r3 so can upgrade site from v7r1...

Have a great day,

Randy</COMMENTS>

<REQUIREDBY>00/00/0000</REQUIREDBY>

<DETAIL>

<PARTNUMBER>P30152P1182P004</PARTNUMBER>

<QUANTITY>1</QUANTITY>

<PRICE>0.00</PRICE>

<SYSTEMID>L31907D 645U</SYSTEMID>

</DETAIL>

</HEADER>

</ZNSMORDER>

</TAC>

</ns0:MT_TAC>

but the XML We are recieving from third party is

<?xml version="1.0"?>

<TAC>

<TACHEADER>

<FILETYPE>ZNSMORDER</FILETYPE>

<FILEID>090730.12014</FILEID>

<VERSION>1.0</VERSION>

</TACHEADER>

<ZNSMORDER>

<HEADER>

<NOTIFICATIONNO>na03909302</NOTIFICATIONNO>

<CUSTOMERNO>8510656</CUSTOMERNO>

<CEDROP>CE847452</CEDROP>

<COMMENTS>Need copy of hppc v7r3 so can upgrade site from v7r1...

Have a great day,

Randy</COMMENTS>

<REQUIREDBY>00/00/0000</REQUIREDBY>

<DETAIL>

<PARTNUMBER>P30152P1182P004</PARTNUMBER>

<QUANTITY>1</QUANTITY>

<PRICE>0.00</PRICE>

<SYSTEMID>L31907D 645U</SYSTEMID>

</DETAIL>

</HEADER>

</ZNSMORDER>

</TAC>

The initial tags are missing so the messsage fails in XI so i there any possible way to recieve what they are sending and add the tags reuired by SAP-PI by some method in XI. Please help on this

Accepted Solutions (1)

Accepted Solutions (1)

former_member200962
Active Contributor
0 Kudos

Check this blog to remove the namespace: /people/sameer.shadab/blog/2005/12/05/how-to-remove-namespaces-in-mapping--xi

As suggested have TAC as the root element (name of your Message Type) instead of MT_TAC.

Regards,

Abhishek.

Answers (2)

Answers (2)

Former Member
0 Kudos

HI,

In addition to the above said points you also need to remove encoding="UTF-8" this content from top line to make it work.

YOu can also do this by writing Adapter module and delete encoding="UTF-8" .

Regards,

Anurag

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

open your message type in integration repository and remove the namespace from it

+ you also need to change the message type name from MT_TAC to TAC

and remove the TAC tag from the data type

then it will work

Regards,

Michal Krawczyk

Edited by: Michal Krawczyk on Aug 7, 2009 9:58 AM