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.

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