Question

4
Replies
185
Views
SurajitG Member since 2014 1 post
Cognizant
Posted: 4 years ago
Last activity: 4 years 7 months ago
Closed
Solved

How to call REST Service from PRPC5.5

There is a requirement to call a REST Service from PRPC with proper authentication , to get the details for an operator. In PRPC 5.5 doesn't have REST Service.

Also the following code Snipped is given to call it.

  Client restClient = Client.create();

restClient.setFollowRedirects(true);

restClient.addFilter(new HTTPBasicAuthFilter("abcd", "efgh"));

WebResource r = restClient.resource("https://ctsi-dev.jpmchase.net:1046/hr/v2/workers/k001941?view=basic");

Worker response = r.accept(MediaType.APPLICATION_XML_TYPE).get(Worker.class);

can you please suggest how can we use this code in PRPC 5.5

Data Integration
Moderation Team has archived post
Share this page LinkedIn