Announcements
This site is in read only until July 22 as we migrate to a new platform; refer to this community post for more details.
Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Variable replacement in XML payload using KVM

I am getting a username and pwd in XML request payload. I need to assign a values for 'username' and 'pwd' values in Apigee.

we can do this in multiple ways,

1) Using extract variable

2) using soap template.

But I need to use KVM, can we do that ??

Solved Solved
1 8 1,113
1 ACCEPTED SOLUTION

HI , I agree above comments helped me to think on such a way to get solution. As Dino said I did not use flow callouts or Java callout.

1) I used a extract variable policy to extract variables from my XML payload.

2) The moment I extracted , All the flow variables will be available. I used assin message policy to retrieve KVM's and constructed a xml request payload to the backend by using XML template (https://community.apigee.com/questions/34012/replacing-xml-node-values-with-custom-values.html).

This worked for me.

View solution in original post

8 REPLIES 8