Skip to Content
0

REST Sender adapter multiple inputs

Jan 30, 2017 at 08:45 PM

49

avatar image

I have a REST to Proxy synchronous scenarios with PI 7.4 system. We had a requirement for Exposing the Function module as RESTful service. In that I am using Synchronous Sender Rest Adapter where I want to give 4 Runtime parameters.

Firstname and Lastname should be passed to the URL and the response back is expected.

Here is my URL pattern:

This is working perfectly fine, but in my requirement the fields are optional, so when I do not input anything for Var2 I'm getting following error:

Placeholder "id_part2" not found in URL "/var1=Dave/var2=" at position 22.

I have checked the optional field for second variable in adapter configuration. Please let me know how to handle an optional field.

Appreciate the help!!

Thank you!!

capture.jpg (35.9 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Raghuraman S Jan 31, 2017 at 03:43 AM
0

hello Swetha,

You ID cache is up to date?

Show 1 Share
10 |10000 characters needed characters left characters exceeded

yes, cache is up to date. I have to pass total 4 input values and all four of them are optional . But the URL is working only if I give all the 4 inputs .

0