cancel
Showing results for 
Search instead for 
Did you mean: 

Add namespace in the XML at File sender adapter level

former_member234749
Participant
0 Kudos

Hi All,

I know we can remove the namespace from xml using the bean AF_Modules/XMLAnonymizerBean, like this can we have any module to add the namespace to the xml in sender file adapter.

I have a requirement that is add the namespace at adapter level in the xml. the xml file coming from third party doesn't have PI namespace. I know we can remove the namespace in the message type definnition and we can handle it. but I can't do this way because I am using the same message type for the file and proxy structure.

Appriciate your help!

Accepted Solutions (0)

Answers (4)

Answers (4)

vedrankubelka
Explorer
0 Kudos

You can copy your structure to new one and remove namespace in data type.

After that make mapping new structure to old one and arrange in operation mapping.

On the end you will have two different messages (one with namespace, one without) which come to PI but only old message which go out from PI

former_member184789
Active Contributor
0 Kudos

Hi,

Here is one of such threads for XSLT mapping, refer to Priyanka's reply:

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

baskar_gopalakrishnan2
Active Contributor
0 Kudos

You do xslt mapping to add namespace which is pretty easy and search scn you will find plenty of threads. Also maintain two message type one for file and other one for your proxy.

Former Member
0 Kudos

Try to create two message type. one remove the namespace and the other for proxy.

Regards.

Lucho