cancel
Showing results for 
Search instead for 
Did you mean: 

How to test message mapping in XMLSPY if two receive message types exist?

xinjiang_li
Active Participant
0 Kudos

Hi gurus,

In our message mapping, we have one send message and two receive messages, the testing is ok in message mapping test tool in ESR. While in XMLSPY, it gave the error because of the reason as follows:

<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">

<ns0:Message1>

Even after we added those statments, the error was still there.

How can I resove this problem? Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

rajasekhar_reddy14
Active Contributor
0 Kudos

I dont think its possible to test GUI Mapping using XML Spy, once XSLT mapping we can test using XMLY Spy.The best way to debug/test message mappings was ESR only.

When ever you implement multi mapping concept then <ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">

<ns0:Message1> will be added to message structure, but you no need to add in source data.

if you are implementing multi mapping concept using XSLT then only you need add manually in XSLT code(<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">

<ns0:Message1>).

Regards,

Raj

Former Member
0 Kudos

Hi,

In the source XML message you may find some extra tags being included.

Just remove those extra tags, then it will work fine.

For example:

If your source XML message is:

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

<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">

<ns0:Message1>

<ns1:MT_FileToFile_MultiMap_Src xmlns:ns1="http://FileToFile/MultiMap">

<Input>

<Name>ab</Name>

<EmpId>123</EmpId>

</Input>

</ns1:MT_FileToFile_MultiMap_Src>

</ns0:Message1>

</ns0:Messages>

remove the extra tags and then it will look like:

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

<ns0:MT_FileToFile_MultiMap_Src xmlns:ns0="http://FileToFile/MultiMap">

<Input>

<Name>ab</Name>

<EmpId>123</EmpId>

</Input>

</ns0:MT_FileToFile_MultiMap_Src>

i hope this will help you,

regards,

ganesh.

xinjiang_li
Active Participant
0 Kudos

Hi ganesh,

Thanks for your reply.

However, we are using graphical mapping. In the runtime environment, we can't remove the messages and messages1 tags.

If we remove them in xmlspy, it still had the error.

Any ideas?

Former Member
0 Kudos

Hi,

However, we are using graphical mapping. In the runtime environment, we can't remove the messages and messages1 tags.

If we remove them in xmlspy, it still had the error.

when we are going to split the message we are getting some extra tags in our source message, try to remove those tags in source message. as above i mentioned how to remove the extra tags. try to remove open and close tags.

ex:

Open Tags,

<ns0:Messages xmlns:ns0="http://sap.com/xi/XI/SplitAndMerge">

<ns0:Message1>

Close Tags,

</ns0:Message1>

</ns0:Messages>

check your payload once again.

regards,

ganesh.

xinjiang_li
Active Participant
0 Kudos

Hi ganesh,

Where should I remove these two tags? Can we remove them in ESR? It seems they are automatically generated.

Former Member
0 Kudos

Hi,

Where should I remove these two tags?

you are sending source file using XMLSPY right, In XMLSPY you will remove both tags an dsend request to target through PI.

regards,

ganesh.

xinjiang_li
Active Participant
0 Kudos

Then it would give the error "http://sap.com/xi/XI/SplitAndMerge".