on 05-05-2006 7:13 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.