Purpose
This section shows how to configure the SAP BTP, Cloud Foundry environment subaccount, and the SAP Forms service by Adobe. This service API will be tested with with postman
Prerequisites
You have a subaccount on SAP BTP, Cloud Foundry environment and the subaccount has entitlement of service Forms service by Adobe.
Procedure
Note : Please use Microsoft Edge Browser to do the configuration.
1. Create instance for ADS subscription
Enter BTP sub-account and create instance for Form Service by Adobe
2. Enter BTP sub-account and create instance for Forms Service by Adobe API
3. Create key for Forms Service by Adobe API instance.
The ads rest api document URL: URI + /swagger-ui.html
https://adsrestapi-formsprocessing.cfapps.eu10.hana.ondemand.com/swagger-ui.html
4. Assing user Role Collections
5. Upload template file into Forms Service by Adobe
a. Copy address of Forms Service by Adobe
b. The form template store URL is : a. url + /adsrestapi/ui.html
https://apjcoe-x66183k9-ads.formsprocessing.cfapps.eu10.hana.ondemand.com/adsrestapi/ui.html
c. create form in ADS
d. download xdp temlate file from github in the following linkage :
https://github.com/SAP-samples/s4hana-ext-cloud-label-printing/blob/main/PrintLabel.xdp
e. Upload the downloaded XDP template file into ADS
Now the xdp template has been created in ADS
6. Test BTP form service by abobe rest api to render adobe form
a. use adobe live designer to open the xdp file from the following linkage:
https://github.com/SAP-samples/s4hana-ext-cloud-label-printing/blob/main/PrintLabel.xdp
b. build printing content data for render rest api call
use notepad open the preview data
paste the body in the following website to encode it to BASE64
Base64 Encode and Decode – Online
c. build body for rest API call according to swagger ui in 2 :
d. test in postman
Method : Post
URL: From 3 URI + Swagger render api path
Authorization Type : OAuth 2.0
Authorization token url, client key client secret are from 3 instance key.
parameters :
templateSource: storageName
TraceLevel, 2
body is from c
response: