cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping-Testing

Former Member
0 Kudos

Hi guys,

i am a little confused. I am doing a HTTP2IDoc and i want to test the mapping of my Datatypes.

For this i have a sample file (XML) which the sender of the scenarios will send to the HTTP-Adapter. With this i'd like to test the Message-Mapping. But when i paste the XML-File into the test area, the mapping isn't working!

There is also the option to generate an Instance of my datatype inside my mapping. If I generate this, there comes up <b><ns:M2S_ROUTING xmlns:ns="http://vm...></b> . Instead of the segment i would like to see like in the XML-File: <b><M2S_ROUTING></b>.

But when i paste the undersegments of my sample-xml-file inside (under the ns: )the generated XML-Testing the mapping works.

All in all my question is, is there a need that the sent XML-File to the HTTP-Adapter needs also a ns (namespace) inside?! Am i doing something wrong?!

br Jens

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Jens,

press the souce-button in the test-tab.

Compare the message-tags with the message you want to test.

They must be the same.

Regards Mario

Former Member
0 Kudos

I know! but there is always this namespace <b>ns:</b> as mentioned above. But i am receiving XML-File without this ns:

any ideas?

MichalKrawczyk
Active Contributor
0 Kudos

Hi,

you can delete the namespace in your messagetype

check question:

12. I have a problem with namespaces in XI - Is there a way to remove them?

in XI FAQ

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Former Member
0 Kudos

Hi Jens,

I examined my scenarios. In every scenario we send the namespace.

So it seems mandatory.

Regards Mario

Former Member
0 Kudos

Hi Jens,

you mean to say the source XML file you get is without ns:......if this is the case, then dont wory - just execute your scenario by putting your source file in your source directory......since in your sender agreement, you will tell your source interface, then this ns: will come in your source messge.

Thanks,

Rajeev Gupta

Former Member
0 Kudos

Hi Michal,

as i wrote ur posting i remebered to read it once before from one of your previous posts.

It's working now!

thx Jens

Answers (0)