Skip to Content

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

Jul 19, 2017 at 04:43 AM


avatar image
Former Member

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.

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers