on 09-15-2017 7:27 AM
Hi,
I need help on below requirement. How to achieve this in HCI?
1) Getting below payload from sender system -
<Payload>
<ID>1234</ID>
<CODE>abcd</CODE>
</Payload>
2) Now need to do one look up using HTTPS adapter to get a converted value to push into <CODE> tag.
URL to call for look up - https://<fixedURL>?ID=<ID field got from source payload>
Output of this request-reply will be a JSON data where I will get one different value of ID.
i.e. {
payload: {
"Desc": "ACDFFF",
"ID": "CAWR_1",
"Title": "jgsjgghjg",
}}
3) Now, I need to send the received data like below-
<Payload>
<ID>CAWR_1</ID>
<CODE>abcd</CODE>
</Payload>
Please help with the iFlow design and with the script coding if anything will be required.
Thanks ,
Hi Sriprasad,
Thanks for your reply. Actually, the payload is not the simple one with two fields. There are lots of other fields, I am generating from mapping.
For a test, I have tried with the request reply with hard coded value in the HTTP channel. But getting below error-
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.
Sriprasad,
I am almost there. Manage to store the value which I need to push in payload in a header data i.e. ${header.ID}
Just help me with the groovy script using which I can replace one tag like <ID>fixedvalue</ID> with the header data.
Means,
<ID>fixedvalue</ID> will be replaced with <ID>${header.ID}</ID>
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
6 | |
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.