cancel
Showing results for 
Search instead for 
Did you mean: 

add Xml verioning and namespace tag for message

Former Member
0 Kudos

HI Experts,

As per my requirement XI sender file adapter has to pick xml file and it will post the data in R/3 based on the conditions using proxy. Here my client is giving only Xml file. This file doesnu2019t have the xml versioning and namespace tags like.

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

<ns0:MT_ZMPSXMSGDET_SEND xmlns:ns0="http://tuas.com/xi/EBT/SonicMQ">

----


----


</ns0:MT_ZMPSXMSGDET_SEND>

So, I have to add these tags for sending message to xi. How to add this tags please give me your valuable inputs.

Thanks

Srinivas

Accepted Solutions (1)

Accepted Solutions (1)

Shabarish_Nair
Active Contributor
0 Kudos

you can also use a simple java code for this. it will be something similar to this code - https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/wholePayloadtoaXML+field

Former Member
0 Kudos

Hi,

Vijay thnk you for u help.

I need one more help. same xml tags i have to delete . for this plz can you provide the java code

thanks

Srinivas

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

No need to add the tags.In the message type remove the "xml namespace".you can process xml without namspace.

Regards,

Prakasu.M

udo_martens
Active Contributor
0 Kudos

Hi,

i think XSLT is here the most easy possibility as i presume a message mapping would faild becoz of missing prolog. Of course Java and ABAP, which havent a requirement for parsing, could be used but this would be more effort.

Regards,

Udo

Former Member
0 Kudos

Hi, you can achive this by using XSLT mapping as step in your interface mapping.

Kai