on 05-18-2016 10:08 AM
Hi Guys, I have one requirement for Proxy to Rest and we need to pass the URL dynamically to the REST. could any one please help how to achieve this requirement. Here is the Structure. MT_SO OrderNumber Subject. we need to pass the OrderNumber dynamically at the end of the REST URL. http://XXXXXXXXXXXXXXXXXXX/{OrderNumber} Regards, P R.
thank you Bhavesh.
it's working fine now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Bhavesh,
We have a requirement to populate the REST Receiver channel URL dynamically.
Our Channel configuration looks like below.
http://server:port/getData/{DYNAMIC}, and have configured the channel to populate value for parameter DYNAMIC at runtime from payload (using XPATH Expression).
The problem is, the value that comes during runtime has reserved characters like = (equals) and ; (semicolon) . Thus these values are getting url encoded and converted to %3D and %3B. Is there a way to avoid this?
For example, url we need is
http://server:port/getData/partnerid=12345;partnerName=xyz
URL generated at runtime is
http://server:port/getData/partnerid%2012345%3BpartnerName%20xyz
Could you please share if you have any suggestions?
mine is the Async interface from Proxy to REST. we need to update the url dynamically. Regards, P R.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhavesh,
Here are the details.
1.XML Payload where you are picking order number.
<?xml version="1.0" encoding="UTF-8"?>
<Order Code="00015024">
<Status>process error</Status>
</Order>
where code is nothing but OrderNumber.
2. XPATH you are using?
/Order/Code
3. Screen Shot of your REST Adapter Configuration.
And this configuration from the blog that provides such an example to read from the payload,
On the Integration Flow double click on the receiver channel, and switch to tab REST URL below the Adapter-Specific settings. Enter the URL Pattern as follows using variables for street, city, country, and the sensor:
http://maps.googleapis.com/maps/api/geocode/json?address={street_par}+{city_par}+{country_par}&sensor={boolean}
The address variables street_par, city_par, and country_par are replaced by the respective values in the request XML message. For each address part, I use an xpath expression to parse and read the respective values from the XML message. The boolean variable is replaced by the static value false.
http://scn.sap.com/servlet/JiveServlet/downloadImage/102-60856-2-611119/372-400/02+REST+URL.png
Regards,
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.