cancel
Showing results for 
Search instead for 
Did you mean: 

namespace question

Former Member
0 Kudos

Dear SDN,

A message mapping is raising the following error:

RuntimeException in Message-Mapping transformatio~

The reason is that the inbound payload has not namespace therefore mapping raises a not well formed inbound message error. My guess!

The inbound message is generated by an external system without explicit namespace:

<root>

.....

</root>

when manually editing the message and adding to it namespace, message process successfully:

<ns0:root xmlns:ns0="...">

...

</ns0:root>

How can I omit this namespace check, o can I create a message type without namespace?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Gustavo -

<i>>>>How can I omit this namespace check, o can I create a message type without namespace?</i>

If you're using a Message Type, you can exclue the namespace by blanking out the <b>XML Namespace</b> in the Message Type screen.

Regards,

Jin

Former Member
0 Kudos

Thank you, it is a better way to solve it

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Gustavo,

r u using sm external definitions or so...i mean is ur source msg structure an xternal definition...try to check in SXMB_MONI he trace of the pipeline step in which u r getting this error. U will get the exact error occuring.

Regards,

Akshay

Former Member
0 Kudos

I just found a way to solve it.

Yes you're right, I am not using an external definition, I created a data type importing the xsd file, and then created a message type referencing such data type.

How I solved it was quite simple. I just export the message type to an xsd archive, edited it to remove namespace definition, and then imported it as source structure into the message mapping. Now the scenario works fine.

Thanks a lot.