Skip to Content

Add namespace in the XML at File sender adapter level

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!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Aug 27, 2013 at 11:30 PM

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

    Regards.

    Lucho

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 28, 2013 at 12:29 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Aug 28, 2013 at 02:14 AM

    Hi,

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

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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Aug 28, 2013 at 10:03 AM

    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

    Add comment
    10|10000 characters needed characters exceeded