Answer the question
In order to leave comments, you need to log in
How to call SAP Cloud Platform predictive service in Java application?
I need to call predictive SCP services in a Java servlet. When I make a GET request to register a dataset to the C4PA URL/api/analytics/dataset/sync (where the C4PA URL is https://aac4paservices <SCP account name> .hanatrial.ondemand.com/com.sap.aa.c4pa .services ) using the CloaseableHttpClient class , I get back an HTML page that says the browser doesn't support Javascript.
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
<meta http-equiv="pragma" content="no-cache" />
</head>
<body style="background-color:#FFFFFF" onload="var url=window.location.hash;if(url&&0!==url.length){var anchorCookie='oucrsrzceptfcaokfcvabtltx_anchor="'+encodeURIComponent(url)+'"';document.cookie=anchorCookie}document.forms[0].submit()">
<p>
<script language="javascript">
document.write("Please wait ...");
</script>
</p>
<noscript>
<p>Note: Your browser does not support JavaScript or it is turned off. Press the button to proceed.</p>
</noscript>
<form method="post" action="https://accounts.sap.com/saml2/idp/sso/accounts.sap.com">
<input type="hidden" name="SAMLRequest" value="PEF1dGhukVoNVRPT08L2RXN0Pg==" />
<input type="hidden" name="RelayState" value="oucrsrzceptfcaokfcvabtltx" />
<noscript>
<input type="submit" value="Continue" />
</noscript>
</form>
</body>
</html>
Answer the question
In order to leave comments, you need to log in
Hello.
Are you doing GET or POST?
This particular service is called by the post https://help.hana.ondemand.com/c4pa/api/aa-cloud-s...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question