on 10-14-2008 10:50 PM
I am trying to use Variable Substitution to dynamically generate the filename but it doesnot work.
Below is the info on my communication channel
Adapter type: File
Transport protocol: NFS
Target directory: /usr/test
File Name Schema: %var1%.txt
Enabled the Variable Substitution:
var1 payload:MT_MLS_IN,1,line,1
Here is my payload:
<nr1:MT_MLS_IN xmlns:nr1="http://mls-clientproxies">
<line>testing</line>
</nr1:MT_MLS_IN>
Am I missing something? Why isnt it writing the file to the filesystem?
Any help is very much appreciated.
Thank you
MLS
HI
Enabled the Variable Substitution:
var1 payload:MT_MLS_IN,1,line,1
Here is my payload:
<nr1:MT_MLS_IN xmlns:nr1="http://mls-clientproxies">
<line>testing</line>
</nr1:MT_MLS_IN>
is MT_MLS_IN and line at same level if so
then define payload:line,1 only
if they are in hierarchy then you need to do the above.
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I fixed it.
It was a very silly mistake from my side. In the variable substitution (payload:MT_MLS_IN,1,line,1) I was using the sender message type. When I changed it to the receiver message type (payload:MT_MLS_OUT,1,line,1) it worked like a charm.
Bhargava/Dharamveer...thanks for taking time to help me.
--MLS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My Message type structure is
MT_MLS_IN 1..1
---line 1...unbounded
So line is a subelement of MT_MLS_IN
Any ideas why this isn't working?
I am on PI 7.0 SP14.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
7 | |
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.