cancel
Showing results for 
Search instead for 
Did you mean: 

How to add Message Type attributes like Schema Location?

Former Member
0 Kudos

I created a data type and a message type.

After this the XML looks:

<ns0:salesOrder xmlns:ns0="urn:ny.com:nl.redsvan.delivery">

My receiver needs:

<salesOrder xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:SchemaLocation="SalesOrder.v006.xsd">

I tried to use the adapter modul: AnonymizerBean

But the result is not useful:

<salesOrder>

I need the attributes

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:SchemaLocation="SalesOrder.v006.xsd"

Thanks in advance

Daniel

Accepted Solutions (0)

Answers (2)

Answers (2)

madanmohan_agrawal
Contributor
0 Kudos

Hi Daniel,

Have you found any solution for this problem? If yes please write the solution here. It will be greate help. Thank you.

Br,

Madan Agrawal

Former Member
0 Kudos

Hi Madan

Yes I replaced the XML-namespace on my Messagetype.

So in MessageMapping you see only <my_type> and no <ns0:my_ype>.

To ensure that he incoming message from sender looks like my MT I use the adapter module

AF_Modules/XMLAnonymizerBean and the anonymizer.acceptNamespaces u2018 u2018

Example:

Sender

<salesOrder xmlns:lulu ..>

After adapter module

<salesOrder>

If your MT is also called <salesOrder> it will work.

For debugging, use the payload of XI Monitor.

Load This into MessagesMapping test and you will see if it match.

Next step is to test IM and then on Configuration time you could run the whole test.

I can send you some screenshots Daniel.guentner at gmx.de

Or send me your incoming file so I can explain step by step what you have o do.

Daniel

Former Member
0 Kudos

Hi Daniel,

the question u raised is not that clear but u cando it by node functions or else chk this blog

thanx

Sampath