Skip to Content
avatar image
Former Member

Removing name space in message payload

Hi All,

My scenario is JMS - PO - ECC (proxy - soap)

when I pass the xml payload the output of the message is generating with the namespace reference in each field ( which are being referred from other xsd while creating)

, I just want to delete those namespace before I send to ECC? the reason is the proxy is throwing an error saying Invalid payload content as it could not recognise the field with name space. I tried using anonymizer but didnt help , can this be achieved with other way?

or some issue with proxy generation in ECC, is there a statement that ECC should not receive the payload with namespace reference at field level.

Please advise on this.

image.png (21.1 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Dec 15, 2016 at 11:55 PM

    Hi,

    If you are using the Message type and data type, then remove the XML namespace from Message type. Refer the below blog for more details

    https://blogs.sap.com/2005/12/05/how-to-remove-namespaces-in-mapping-xi/

    regards,

    Harish

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 16, 2016 at 07:53 AM

    Hi,

    the target structure is quite a complex and large so no point in doing that moreover its just a pass through and so both source and target structure remains same.

    can this be done via mapping ?

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 16, 2016 at 07:56 AM

    Hi Sethuraman!

    If your scenario is pass-through you could use XSL transformation in MessageTransformBean to remove namespaces from message.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded