This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@PostMapping(path="generic/rest") | |
public ResponseEntity<?> getBusinessValue(@RequestBody String soapRequest, @PathVariable("service") String service) throws ClientProtocolException, IOException { | |
HttpClient client = HttpClients.custom().build(); | |
HttpEntity httpEntity = new StringEntity(soapRequest); | |
HttpPost postRequest = new HttpPost(service_path); | |
postRequest.setEntity(httpEntity); | |
HttpResponse httpResponse = client.execute(postRequest); | |
HttpEntity responseEntity = httpResponse.getEntity(); | |