Skip to Content
0

Sender REST Adapter Configuration - Multple GET Parameter

Jan 30, 2017 at 12:10 AM

248

avatar image

HI,

i have a requirement to provide a RESTful service from PI to third party application and retrieve data from database and send back in a synchronous call.

I have gone through multiple blogs but i could not find end to end steps to configure this scenario. I want to know the ESR steps to be done and if we need to provide any WSDL to the third party to send the data?

What all settings i have to do on the REST Sender adapter channel.

I am on PI dual stack 7.31.

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

6 Answers

Raghuraman S Jan 30, 2017 at 09:55 AM
0
Share
10 |10000 characters needed characters left characters exceeded
Husain Dahodwala Jan 30, 2017 at 06:57 PM
0

Hi Raghu,

My scenario is Salesforce will call PI restful service and PI will fetch the data from a DB and send it back to Salesforce.

This is end to end scenario I have gone through the above links but they are using SOAP with axis. I need to use REST.

Thanks

Husain

Share
10 |10000 characters needed characters left characters exceeded
Raghuraman S Jan 31, 2017 at 03:32 AM
0

Hello Husain,

In the case you can use the SF WSDL as input message,In case of JSON input you can select convert to XML option in channel.

Share
10 |10000 characters needed characters left characters exceeded
Husain Dahodwala Feb 02, 2017 at 05:28 PM
0

HI Raghu,

There is no WSDL from SF. I am getting a plain HTTP GET Request from SF to my REST adapter. Can you share the configuration to capture the GET parameters in my message mapping?

Thanks
Husain

Share
10 |10000 characters needed characters left characters exceeded
Husain Dahodwala Feb 06, 2017 at 07:06 PM
0

Hi Everyone,


i have configured the REST adapter with below endpoint and I am expecting 3 variable being passed via HTTP GET.

See attached configuration

General Tab

Endpoint

REST resource

I am doing a call using the below URL

http://host:port/RESTAdapter/salesforce/DPVR?raw_id=100151104604W400☆t=20150101&end=20160101

The sender Adapter is getting selected but the Dynamic configuration does not show the custom attributes which i have configured in the channel

As i cannot find the custom attributes i am not able to read them in my mapping .

Please let me know if anyone has configured multiple GET parameters in Sender REST adapter and used them in mapping.

Thanks

Husain


general-tab.jpg (62.8 kB)
endpoint.jpg (55.0 kB)
restresource.jpg (78.9 kB)
restresource2.jpg (47.8 kB)
dyncong.jpg (45.2 kB)
Share
10 |10000 characters needed characters left characters exceeded
Siji Anup Feb 07, 2017 at 07:13 AM
0

Hi Husain,

You need to use GET variable option and not URL pattern element in XI DynamicAttribute Value source . Also keep your Pattern just as / instead of /DPVR. This will give you the desired result

Regards,

Siji Anup

Share
10 |10000 characters needed characters left characters exceeded