on 04-21-2011 1:00 PM
Hi Experts,
My Input file contains following structure:
101
102
103
104
Now I want to generate following source XML file using FCC in sender file adapter
<?xml version="1.0" encoding="utf-8" ?>
<ns:MT_Employee xmlns:ns="http://Test_Employee">
<Employee>
<EmpID>101</EmpID>
<EmpID>102</EmpID>
<EmpID>103</EmpID>
<EmpID>104</EmpID>
</Employee>
</ns:MT_Employee>
Pls let me know what will be values for following parameters:
Document Name: <This would be MT_Employee probably>
Document NS: <This would be http://Test_Employee probably>
Document Offset : <Blank because we need values from first row onwards>
RecordSet Name:
RecordSet NS:
RecordSet Structure:
RecordSet Sequence:
Recordsets per Msg:
Key Field Name:
KetField Type:
Parameters:
Pls let me know all the parameters required to attain above XML
Thanks,
Rakesh
Document Name: MT_Employee
Document Namespace:http://Test_Employee
Document Offset: leave blank
Recordset Name: leave blank
Recordset Namespace: leave blank
Recordset Structure: Employee,*
Recordset sequence Ascending
Recordsets per message *
key Field Name leave blank
key Field Type String (case sensitive)
Note: Since you have just one field value , you dont need any field name here. Just leave blank. Fill only mandatory characters.
Plus you need to specify name value fields below.... that's it.
Employee.endSeparator 'nl'
Employee.fieldNames EmpID
Hope that helps
Edited by: Baskar Gopal on Apr 21, 2011 9:41 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gopal,
I have provided the parameters said by u, but it did'nt work. We have to either provide 'Employee.fieldFixedLengths' or 'Employee.fieldSeparator' . Because one of these is mandatory for FCC. After providing ur parameters, I got below error:
Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'Employee.fieldFixedLengths' or 'Employee.fieldSeparator' is missing Consistency check: no. of arguments in 'Employee.fieldFixedLength' does not match 'Employee.fieldNames' (0 <> 1)
Pls let me know the parameters to attain below XML:
<?xml version="1.0" encoding="utf-8" ?>
<ns:MT_Employee xmlns:ns="http://Test_Employee">
<Employee>
<EmpID>101</EmpID>
<EmpID>102</EmpID>
<EmpID>103</EmpID>
<EmpID>104</EmpID>
</Employee>
</ns:MT_Employee>
from below input file structure:
101
102
103
104
Regards,
Adi
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.