on 11-06-2008 3:45 PM
Hello !!
I am trying to post a file with * delimiter and for that I am using the below content conversion :
record.fieldNames -
f1,f2,f3,f4,f5
record.fieldSeparator -
*
all the fields under record are optional. When the sending system is sending the data as
<record>
<f1> 111</f1>
<f5> 555 </f5>
</record>
The file is created as follows :
111*555
I want that file should be created as
111*****555
"***" for the missing f2,f3,f4 fields , so that the receiving system wouldnt take 555 as f2 field value.
Thanks
Peeru
hi,
send a space from MM, then CC will place a * in f2,f3,f4.
in messagmapping add mapwithdefault function for all the fields and give a space by doubleclicking on the funtion, when ever the filed is empty MM will send a blank space to adapter and adapter will place a *.
Try this and let us know if you face issues.
Regards,
Sukarna.Chirumamilla
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Peeru,
Not sure how are you converting this data but to get this, you need to have empty tags.
<record>
<f1> 111</f1>
</f2>
</f3>
</f4>
<f5> 555 </f5>
</record>
If you are using any XSD or WSDL to do this mapping, that should take care of this
Thanks
-Kulwant
Also in mapping you can specify to create EMPTY element if no input is found. That way this is easy
Edited by: Kulwant Bhatia on Nov 6, 2008 5:20 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Peeru,
That's not possible. In your mapping program you want to make all the fields present even if they don't have values. In that case you can have 1****555
raj.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.