on 01-19-2007 8:32 PM
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
Kalpana,
What is the Message protocol are you using in the sender FILE channel?
ravi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
After you removed the namespace from message type (that is correct) make also a dummy modification to the mapping.
It will works.
Regards,
Sandro
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.