Closed alex-de-sap closed 8 months ago
Hi @alex-de-sap,
thanks for reaching out to us.
I double-checked our documentation and found that everything is indeed correct BUT the link to our Maven module, which provides the ApacheHttpClient5Accessor
- the current link is (as you pointed out) currently still suggesting the 4.29.0
module, which is of course incorrect.
Instead, you should be using the version 5 variant of the module, which has been renamed for consistency: https://central.sonatype.com/artifact/com.sap.cloud.sdk.cloudplatform/connectivity-apache-httpclient5
By switching to the correct dependency, you will also notice the syntax issues to disappear as we introduced new APIs in SDK 5 to make the overall destination handling and consumption more streamlined.
Please let me know if everything is working out as expected.
Best regards, Johannes
Issue Description
We are migration our microservices to Spring Boot 3.1.x and Cloud SDK 5.4 We are using Cloud SDK to make http calls via Destinations and Spring Rest Template.
Before Migration (Spring Boot 2.7, Cloud SDK 4.29 ) we did it like this: https://github.wdf.sap.corp/Treasury/tpi-core/blob/master/srv/src/main/java/com/sap/finance/tpi/core/tradingplatformintegration/api360t/Api360tClientPreparationHelperImpl.java
With Spring Boot 3.1 and Cloud SDK 5.4 we think we have to do it somehow like this (described here: https://sap.github.io/cloud-sdk/docs/java/features/connectivity/http-client) https://github.wdf.sap.corp/Treasury/tpi-core/blob/feature/migrate-to-spring-boot-3/srv/src/main/java/com/sap/finance/tpi/core/tradingplatformintegration/api360t/Api360tClientPreparationHelperImpl.java
Issue is that the code described here https://sap.github.io/cloud-sdk/docs/java/features/connectivity/http-client does not fit together:
This gives syntax errors, because DestinationAccessor.getDestination returns com.sap.cloud.sdk.cloudplatform.connectivity.Destination and ApacheHttpClient5Accessor.getHttpClient(destination) expects HttpDestinationProperties
Another confusing point is that the apache5 module which should be used is only available in version 4.29.
This leads to the following dependency tree (extract):
Please support by implementing this.
Impact / Priority
Affected development phase: Development
Impact: Blocked
Timeline: n/a
Project Details
Checklist