Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 950

REST Adapter Dynamic URL

$
0
0

Hi SAP Experts,

 

We are configuring a REST to REST scenario with dynamic url parameters whose values are taken from the Rest Request Header.

During configuration, we found out that REST Adapter can only read encoded URLs.

 

Example:

http://testurl.com/test/International/v1.10/json3.ws?Key=123456789&Country=%20&Location=test

 

Our configuration is completed but during testing we encountered a discrepancy between calling the endpoint using SOAP UI and the actual sender application.

 

Using SOAP UI, both the sender and the receiver REST channels read the value of Country as %20. Thus, the message was successfully delivered to the receiving system.

 

On the other hand, when using the actual sender application, the sender channel also reads it as %20. During processing but when the URL leaves the sender adapter, the %20 is decoded to space again. This results to the following error in the receiver channel:

 

MP: exception caught with cause java.lang.RuntimeException: java.net.URISyntaxException: Illegal character in query at index 132: http://testurl.com/test/International/v1.10/json3.ws?Key=123456789&Country= &Location=test

 

What could be the reason in the difference in the results of testing? As far as we know, testing with SOAP UI is as testing from the sender.

 

 

Thank you.


Viewing all articles
Browse latest Browse all 950

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>