cancel
Showing results for 
Search instead for 
Did you mean: 

Error while calling Adobe forms api using Java

0 Kudos

Hi All,

I am working on a POC for generating PDFs in SAP cloud using Java. However I getting below error while calling the rest api for forms:

{"message":"Internal API Error","results":"ADS Authentication Error","trace":"Could not find authentication credentials. Basic Authentication is required. Please add corresponding username and password to 'ADS' destination.","errorLevel":"D103"}

Below are the configurations which I have configured in my Neo trial account:

-> Registered oAuth client to generate token

-> Configured ADS destination in Destination Section of Neo with basic authentication.

-> Configured ADS destination in REST Api roles and destinations in Adobe Forms Service. Assigned ADSCaller and ADSADmin roles to my user id.

All the screenshots are attached here.

From the Java code, I am generating Oauth token using the credentials generated from cloud. I am able to generate the token. But while passing that token to form api request, I am getting the above mentioned error. Coding part I have referred from blog https://blogs.sap.com/2018/11/08/generate-pdfs-in-the-cloud-sap-forms-by-adobe/

Could you please help me to resolve this error.

Regards,

Kamalpreet

Accepted Solutions (0)

Answers (1)

Answers (1)

PascalBremer
Advisor
Advisor
0 Kudos

Hi Kamalpreet,
Forms by Adobe is no longer available as hana trial.

Try changing the ads url in your configurations to a working one.

Best regards
Pascal