cancel
Showing results for 
Search instead for 
Did you mean: 

ns0 issue - mappinf fails

Former Member
0 Kudos

I am using external definition for sender message while doing the mapping.

But at runtime my mapping fails because sender is not sending ns0 and namespace with the room element ...e.g

<u>sender is sending</u>

<b><ship_data></b>

<u>and XI is expecting</u>

<b><ns0:ship_data xmlns:ns0="http://sp09.shipping.com"></b>

I have gone through lot of forum's response but seems that namespace could be omitted only when we create message type and remove the namespace from that.

Does anyone know, how to resolve this issue when we use External definition in our mapping???

I appreciate for everyone's help.

~P

Accepted Solutions (1)

Accepted Solutions (1)

henrique_pinto
Active Contributor
0 Kudos

Since the external definition (.xsd) defines the namespace, then any system that creates that message needs to create the namespace reference in the message.

If the sender sends messages withtout the namespace, they must correct it.

Regards,

Henrique.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Goto your Message Type (MT Definition), i believe it is <b>ship_da</b>ta

There is something called <b>XML Namespace</b> below the Data Type Name and Name Space text boxes. <b>Delete the contents of the XML Namespace textbox</b>.

Then send a message from the external agent as they are sending now.

This should work.

Regards,

Balaji.M

sridharreddy_kondam
Active Contributor
0 Kudos

Hi Pranav,

If it is external definition first try modifying it as required and then reimport that..

Thanks and Regards,

sridhar

Former Member
0 Kudos

What changes do I need to do into external definition, so that it would send ns0 with the root element ???

Message was edited by:

pranav .

Former Member
0 Kudos

pranav,

in ur external defination in root element xmlns:ns0="http://sp09.shipping.com paste this namespace and reimport it and try again.

Thanks

Sreeram