12-06-2018 9:53 PM - edited 02-04-2024 4:53 AM
I did the steps (for CF trial account)
mvn archetype:generate -DarchetypeGroupId=com.sap.cloud.s4hana.archetypes -DarchetypeArtifactId=scp-cf-tomee -DarchetypeVersion=2.7.0 -DgroupId=com.sap.cloud.s4hana.examples -DartifactId=secondapp -Dversion=1.0-SNAPSHOT
>cd secondapp
insert code in HelloWorldServlet.java
>mvn clean install
>cf push
>cf set-env secondapp destinations "[{name: \"ErpQueryEndpoint\", url: \"https://myxxxxxx-api.s4hana.ondemand.com/sap/opu/odata/sap/API_BUSINESS_PARTNER\", username: \"USER_XXX\", password: \"password\"}]"
>cf restage secondapp
and get returned by the servlert:
Error: Unable to fetch the metadata : Failed to execute OData Metadata request.com.sap.cloud.sdk.odatav2.connectivity.ODataException: Unable to fetch the metadata : Failed to execute OData Metadata request.
The destination is perfecty working in postman and SoapUI.
I know, this mistake has been discussed here many times.
Hi Thomas,
Please check the Blog https://blogs.sap.com/2017/09/15/step-12-with-sap-s4hana-cloud-sdk-consuming-business-api-from-s4han...
Best Regards
Enda
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
12 | |
11 | |
6 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.