Skip to Content

XSD XML Element prefix

Hi

I an trying to create an XSD so that I can create a message with prefix on XML elements - for example I want <enab:ExportData> but having tried various things in XSD. I import XSD as an external definition and use it in a message mapping but I always end up with <ns1:ExportData> Any ideas?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Apr 26 at 11:47 AM

    Hi Jonny!

    Actually, xml namespace prefix in general shouldn't be the problem since it's just a kind of alias for namespace string itself. But you could use XSL transformation for your message mapping.

    Regards, Evgeniy.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 27 at 12:20 AM

    Hi Evgeniy....you are correct I just wanted the SAP PO message mapping request to look the same as when I test it using SOAPUI; so I created my own XSD but seems that message mapping ignores any namespace prefix I tell it to use. Thanks anyway.

    Add comment
    10|10000 characters needed characters exceeded