Question
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
I haven't tried this in PRPC 5.5 : but you might want to start with a CONNECT-HTTP rule - does the REST service you need to contact return XML or JSON ? If it's XML - then you might be able to apply a PARSE-XML rule to the result.....