cancel
Showing results for 
Search instead for 
Did you mean: 

idoc to XML, namespace is not getting created in output XML

Former Member
0 Kudos

Hi All

My interface is idoc to XML.

I am using graphical message mapping.

In output xml , namespace is not formed

Can any one tell why namespace is not created in the XML and

How to add the namespace to the output XML .

Kindly help

Regards,

Sheela

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

u can also try picking up the Inbound message payload from moni and try an unit testing in IR mapping to see if the message is well formed.

Thanks,

Sudhansu

Former Member
0 Kudos

Hi,

Open your target message type in Integration Repository. Enter namespace under XML namespace field.

Thanks

Inder

Former Member
0 Kudos

Hi

I have not created the Message type coz i have imported the XML through external definition.

And the message is in well format when i checked through sxmb_moni

Former Member
0 Kudos

Hi,

You can change your external definition to achieve it. just compare the structure of your xsd with some other normal data type xsd and change accordingly.

Inder

udo_martens
Active Contributor
0 Kudos

Hi Sheela,

ok, then for external definition the namespace is missing. Add attribut xmlns="myNamespace" to schema root element

Regards,

Udo

Former Member
0 Kudos

Hi

The external definition has the namespace in the schema.

But after graphical mapping, the output XML does not have a namespace

Regards

Sheela

udo_martens
Active Contributor
0 Kudos

Hi Sheela,

plz post the external definition (the first 10 rows of that file).

Regards,

Udo

udo_martens
Active Contributor
0 Kudos

Hi Sheela,

apparently the field "XML namespace" in target message type is empty.

Regards,

Udo

Former Member
0 Kudos

Hi Udo,

My XML is also of same structure as IDOC, it is a XML IDOC.

There is no specific field for namespace.

Regards

Sheela