cancel
Showing results for 
Search instead for 
Did you mean: 

Reading XML file

Former Member
0 Kudos

Hi

I am trying to read an XMl file

i test the mapping and i get an error.

when i add the namesapace to the xml it work for exampple:

without the namesapce it does not.

obviusly the xml comes without.

adding this make it work

<ns0:Itror_MT xmlns:ns0="urn:MM:Itrot_yatzran_car">

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Mushon,

if you use message mapping as well source as target message has to be conform to the schema of message type. If a foreign system cant send that you can change the namespace in message type or use a xsl mapping (or Java or ABAP).

Regards,

Udo

Former Member
0 Kudos

Hi Udo

This XML will work:

<?xml version="1.0" encoding="windows-1255" ?>

- <ns0:Itror_MT xmlns:ns0="urn::MM:rfrr_ererer_">

- <root>

<row t_date="20060312" t_time="200603120655" t_atarsapak="100001"

without the this it will not work: ns0:Itror_MT

xmlns:ns0="urn::MM:rfrr_ererer

How do i add it to the message without forcing the vendor to change his XML?

udo_martens
Active Contributor
0 Kudos

Hi Mushon,

You can change then namespace of the message with a additional Java or ABAP mapping. But it is much easier to change the field namespace of your message type or avoid usage of message mapping.

Regards,

Udo

MichalKrawczyk
Active Contributor
0 Kudos

question 12 (integration engine section)

in the XI FAQ

Regards,

michal

-


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

Former Member
0 Kudos

Hi Michal,

my problem is that by default Xi does not add the namespace and therfor i get an exception during mapping.

My question is how do i add it?

Former Member
0 Kudos

My scenario is XML file to RFC and a mapping is needed

Former Member
0 Kudos

Thanks finally made it work!

former_member187339
Active Contributor
0 Kudos

Hi,

Try this, when you create Message type for File, don't give any namespace in XML namespace box.

Regards

Suraj

Answers (0)