cancel
Showing results for 
Search instead for 
Did you mean: 

File to File scenario issue

Former Member
0 Kudos

I'm doing a simple File to File scenario, In which i'm gettin a mapping error but i dont understand how to fix that.

File is getting read from input directory correctly. the file is coming as below and failing

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

- <MT_INPUT>

- <header>

<key1 />

<name />

<date />

</header>

...

...

but if input XML is like below its successful

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

<ns0:MT_INPUT xmlns:ns0="urn:test:file2file5">

<header>

<key1/>

<name/>

<date/>

</header>

<body>

i.e the problem is with the name space. But input file always coming without a namespace how should i resolve this issue.

I tried removing the XML name space from Message Type, still its not solving the problem. If XML is with the name space then only its going successfully, but the input file will not have name space. Whats the solution for this?

Kalpana

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Kalpana,

What is the Message protocol are you using in the sender FILE channel?

ravi

Former Member
0 Kudos

After you removed the namespace from message type (that is correct) make also a dummy modification to the mapping.

It will works.

Regards,

Sandro

Former Member
0 Kudos

Hi Kalpana -

So why not put <i>urn:test:file2file5</i> namespace in your sender file channel config - parameter <i>Document Namespace</i>?

Is that against your requirements?

Regards,

Jin