on 02-29-2012 2:58 PM
I am working a flat file (actually, its an IDOC file) that will enter the configuration scenario through a Seebruger SFTP adatper. Since this is a flat file, and not XML, I need to convert this to XML prior to doing content based routing in the receiver/interface determination.
I am most concerned with the RECPOR field.
RCVPOR : Receiver port
internal data type : CHAR
Internal length : 000010 characters
Position in segment : 024, Offset : 0263. external length : 000010
The scneario is a simple passthrough. What I envision doing is converting the IDOC Flat file to an XML structure, then doing content based routing on the one field I am interested in, as mentioned above.
Is there a way to do this without modifying the payload in teh sender/receiver channels, or am I going to be forced to doing content conversion with MessageTransformationBean?
Since all of my routing will be done on 10 characters, I see breaking the file up into 3 fields...characters 1-263, 263-273, 273-EOF does some one have a sample of how to separate this, and how to recombine the values in the receiver?
I think without content conversion not possible
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If I wanted to break the file up into 3 elements in a simple XML strcuture....
I know its possible to do this using fixed field lengths...is there a method to break that file up int a simple xml structure with, lets say, 3 elements....
Where field 1 contains from the start of the file (1) thorugh say character 31. Filed 2 contains 31-41 then the third field to contain the rest of the file? These 'flat files' could be any one of a dozen or so IDOC files that are being sent to me from an external EDI Translator.
User | Count |
---|---|
90 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.