cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping: Problem with Namespaces while testing

Former Member
0 Kudos

Hello,

can anyone tell me what's the thing with the namespace in xml-messages for testing?

My problem is the following: I have exported a test-xml-file from a mapping in another namespace (where everything is correct) and now i want to import this xml-file in my new mapping (another namespace).

I found out that i have to change the given "xmlns:ns" attribute from the original namespace to the software component version (!!!), in which my new mapping is. Otherwise the file can't be imported correctly in my new mapping.

Can you tell me the cause for this curious case, so that i don't have to search for my problem the next time...?

Thanks in advance,

best regards, Leo

Accepted Solutions (1)

Accepted Solutions (1)

former_member187339
Active Contributor
0 Kudos

Hi,

When you have created MT which is used in MM, leave the <b>XML Namespaces</b> blank. Now try to test, it will work.

Regards

Suraj

Former Member
0 Kudos

Hi Suraj,

Your answer is not quite plain to me, sorry.

Perhaps you can tell my with an example. My original xml looks like the following:

<?xml version="1.0" encoding="utf-8"?>

<ns:VDA490500 xmlns:ns="http://mynamespace.com/basis">

<S511>

<SATZART>511</SATZART>

<VNR>02</VNR>

<KNDNR>1234</KNDNR>

...

</S511>

...

<S519>

<SATZART>519</SATZART>

...

</S519>

</ns:VDA490500>

Now the namespace of my new mapping is another, and i only accomplished my problem by changing it to

<?xml version="1.0" encoding="utf-8"?>

<ns:VDA490500 xmlns:ns="<b>NewSoftwareComponentVersion</b>">

<S511>

...

All other trials didn't work.

Can you show me what you meant, and perhaps can you tell me why?

Thank you,

Leo

MichalKrawczyk
Active Contributor
0 Kudos

hi,

have a look at this weblog to understand:

/people/sameer.shadab/blog/2005/12/05/how-to-remove-namespaces-in-mapping--xi

Regards,

michal

former_member187339
Active Contributor
0 Kudos

Hi,

<b>

>><?xml version="1.0" encoding="utf-8"?>

<ns:VDA490500 xmlns:ns="http://mynamespace.com/basis">

...

</ns:VDA490500></b>

Here your namespace is present because you have an entry in the Message Type and that entry is <i>http://mynamespace.com/basis</i>

You have two option either

1)you can manually edit this namespace name with yur new namespace's name

2) or remove the namespace name in the MT from both place.

And for removing it when you create your Message Type, you have to leave blank the text box named <b>XML namespace</b>.

Regards

Suraj

Former Member
0 Kudos

Thanks Michal, thanks Suraj, for your help.

Answers (0)