Avoid SOAP payload corruption in Apigee flow

0 0 157

I am publishing this article intending if anyone is facing payload corruption during their API request via Apigee.

In the recent past, I came across this type of issue. When we migrated our services from Layer 7 to Apigee, we saw most of our services are SOAP-based. The payloads are big SOAP bodies. Layer 7 is more friendly with SOAP than Apigee. This statement I am giving is purely based on experience. In Apigee we have implemented multiple policies in the proxies. We found the payload is somehow getting corrupted when it's passing across different policies ad codes. We were getting the bad request error each time.

To overcome this I copied the request payload in the first policy of proxy using assign message policy and again did set the request.content from the variable just before the request goes to the backend in the target endpoint request. This resolved the issue.

Hope this may help you sometime.

Version history
Last update:
‎08-20-2020 08:36 AM
Updated by: