Skip to Content
avatar image
Former Member

Message Prefix

We have agreed with a customer on the message type to be exchanged. For simplicity let's say:

<OrderCreate>

..

</OrderCreate>

I have created the relevant mapping rules, but when I want to test the mapping (in Design) with a test message the customer sent us, I get an error. This is because the customer is using a prefix:

<COC:OrderCreate>

..

</COC:OrderCreate>.

When I remove this prefix manually erverything is ok. My question: How do I introduce this prefix is my message definition, or how do I get rid of this prefix when the message is processed?

Kind regards,

John.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Aug 09, 2006 at 07:42 AM

    Hi John,

    this prefix is standing for a namespace. Search for "xmlns". You should find:

    <myElement xmlns:COC="myNamespace">

    Your message type has by default the namespace, where it is created but you can give there a individual namespace.

    Regards,

    Udo

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Henrique Pinto

      Hello Henrique,

      You state: Anonymizer Module Processor (it can be used together with any other adapter module). But we are using the HTTP-adapter and the tab 'Module' is greyed out. For all other adapters I can enter seperate Modules.

      Are you able to use modules with the HTTP adapter?

      Regards,

      John.

  • avatar image
    Former Member
    Aug 09, 2006 at 07:34 AM

    Hi John,

    I am not very sure, but I think you can take the help of the module processor for this problem...have a look at the following thread:-

    Java Mapping to override namespace prefix (startPrefixMapping)

    Also, please post a sample of where exactly this prefix is getting attached when you are testing your mapping...'cuz generally, the prefix is should not matter much while mapping.

    Regards,

    Sushumna

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi sushumna,

      The module processor would help probably, but the standard HTTP adapter will be used, and the "Module" tab is greyed out for this adapter?

      It is not a problem of the mapping itself, but loading the test message will make all nodes red for the source message. By removing the prefix all nodes go green.

      Regards,

      John.