How to remove namespaces in Mapping – XI
This is a pretty simple blog, addressing a very frequently asked question on XI forum as to how to remove the namespaces from the XML output of Message Mapping. This issue has been answered on the XI forums as well, and i am putting it graphically as a weblog, for the benefit of newbies in XI. While creating the Message Type in the Integration Repository, you can find a field called XML Namespace, this field will be holding the namespace value, as shown in the image below.
If we do not remove the namespace from there, then the xml output will also contain the namespace in the root element, as shown in the image below.
Inorder to get rid of the namespace from the XML output, we need to delete the value from XML Namespace, while creating the message type.
Now the XML output will look like below,
The output in SXMB_MONI as well,
Hope this blog was helpful.
If we do not remove the namespace from there, then the xml output will also contain the namespace in the root element, as shown in the image below.
Inorder to get rid of the namespace from the XML output, we need to delete the value from XML Namespace, while creating the message type.
Now the XML output will look like below,
The output in SXMB_MONI as well,
Hope this blog was helpful.
Good blog !!!
Cheers,
Naveen
did you take a look at the XI FAQ?
question 15 (integration engine section)
The specified item was not found.
Regards,
michal
If you are looking at help in deleting your complete configuration, check the blog by Siva Maranani, How to : Delete Software Component from Integration Builder
Hope it helps.
cheers
Sameer
First of all, thanks a lot for your blog, it has been a good guide for me in order to improve about the declarations in XI, but i have another problem concerning to namespaces, the term is that i want to delete all declarations in the outbonding xml, that is:Sergio
One way is to use an XSLT mapping to remove the namespace in your interface mapping after your message map.
You can use the following XSLT,
Hi,Norbert
when i am testing the proxy to file scenario, an error is occured saying "EXCEPTION_DURING_EXECUTE" Cannot create target element /MT_iSIGHT_Employee_Details(root element).
i had faced the same problem once.
after going thru the payload found that its adding a new namespace at runtime "xmlns:prx="urn:sap.com:proxy:"..
so any idea to handle this issue...?
thanks,
Lalitkumar.