Skip to Content
avatar image
Former Member

issue with receiver rest adapter, '&' character in url encoded message

I am doing a POST operation with REST adapter. this post method takes body as form data with content type "application/x-www-form-urlencoded".

Basically I am writing my message into a dynamic config variable and replacing it in URL.

issue arises when I get "&" character in one of the fields from source. "&" is parameter delimiter so REST adapter consider any data after "&" as another parameter which fails in service call.

As per SAP help documentation "The pattern and the generated URL must be in URL-encoded form. No automatic conversion is applied." but when I encode the message I found out that PI is re-encoding the message. even though documentation explicitly says No automatic conversion is applied I can see in XPI-inspector http call logs that it is being re-encode.

https://help.sap.com/viewer/5cf7d2de571a45cc81f91261668b7361/7.5.8/en-US/b4076c130bef4cd7b414d35a0f266fe5.html

is it a bug or is there a way to switch off encoding at adapter level.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

0 Answers