cancel
Showing results for 
Search instead for 
Did you mean: 

Different PI message type name and root node name

Former Member
0 Kudos

Hi Friends,

At receiver side, we need to send a XML message with root node as "Message". But in PI we need to follow naming conventions and message name should start from MT*. Hence i need to rename the root node of my XML message while sending message to receiver and i am using file adapter.

Can anybody guide me for that?

Thanks

Sumeet.

Accepted Solutions (1)

Accepted Solutions (1)

nitinlpatil12
Participant
0 Kudos

Hi Sumeet,

You can use module AF_Modules/XMLAnonymizerBean before adapter module. Also refer the following blogs it may be of some help,

http://scn.sap.com/message/9627609

http://scn.sap.com/message/805356#805356

Regards,

Nitin Patil

Please reward points if you find it useful.

Answers (4)

Answers (4)

Muniyappan
Active Contributor
0 Kudos

Hi,

As mentioned by raja it is not mandatory to use MT* in your message type. renaming it "Message" is not going to cause any trouble.

please check below one for naming conventions in pi.in this i don't see any sentence saying message type must start with MT*.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40a66d0e-fe5e-2c10-8a85-e418b59ab...

Regards,

Muniyappan.

ambrish_mishra
Active Contributor
0 Kudos

Why use XSLT or Java mapping to change the root node name when you can simply compromise with naming conventions for this one.

rajasekhar_reddy14
Active Contributor
0 Kudos

Not mandatory to follow MT  as a prefix , if message type name creating trouble then use whatever name you want,it works.

Former Member
0 Kudos

You can just map MT and Message. Your output will be 'Message' on the output.