Skip to Content
avatar image
Former Member

add Xml verioning and namespace tag for message

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"?>

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jun 16, 2009 at 11:07 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • avatar image
    Former Member
    Jun 16, 2009 at 10:23 AM

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

    Kai

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 16, 2009 at 11:10 AM

    Hi,

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

    Regards,

    Prakasu.M

    Add comment
    10|10000 characters needed characters exceeded

    • 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