Questions tagged [sap-cloud-sdk]

Use this tag for questions related to SAP Cloud SDK. SAP Cloud SDK provides language-specific out-of-the-box capabilities, such as an abstraction of the underlying cloud platform implementation, fault-tolerance, cache management, etc. It also provides a continuous delivery toolkit with ready-made Jenkins pipelines. Programming languages related to this tag are Java, JavaScript, and TypeScript.

304 questions
0
votes
1 answer

Can odata-generator-maven-plugin somehow generate all classes Serializable?

I want to generate with com.sap.cloud.sdk.datamodel:odata-generator-maven-plugin:4.20.0 a Java client and all the generated classes must implement the interface Serializeable. How can I instruct the generator to do this? BR, Thomas
0
votes
0 answers

@RequestScope does not work. Request mix data

I have built a relatively small Java application based on SAP Cloud SDK/Spring-Boot. Each request should be unique. That's why I have provided each class I use with @RequestScope (In despair). Now, when testing with several users in parallel, we…
Tobias
  • 4,921
  • 4
  • 31
  • 40
0
votes
1 answer

How to perform mTLS client certificate verification using @sap-cloud-sdk in node js

I have a node js app deployed in SAP BTP,need to expose webhook endpoints for SAP Event Broker (Integration suite) which requires the webhook endpoints to be mTLS enabled (i.e authentication using only client Certificates) Is there a way to do mTLS…
0
votes
1 answer

open API generated Cloud SDK custom fields update

I'm trying to update cloudSDKCustomFields using an OpenAPI generated API. But I'm not able to do so as these custom fields are not getting serialized. How to update these custom fields? I tried via PATCH and PUT, both not working.
0
votes
1 answer

How to prevent a deserialization error in Get operation

We replicate data from Sales Cloud V2 system to our micro service and our services bases on java with the help of Get operation. Therefore we use the SAP Cloud SDK openAPI generator, which works fine. In Sales Cloud V2 an account entity exist and…
asem
  • 3
  • 1
0
votes
1 answer

Unauthorized: Bad credentials error while accessing Springboot app running on SAP Cloud Foundry

I am getting below error while trying to use sapjco3 in my Springboot application. I am deploying my application to SAP Cloud foundry environment packaging as war file with tomee7…
Athul Ram
  • 31
  • 2
0
votes
1 answer

NoClassDefFoundError while using SAP JCo in maven Sprinboot Application SAP CF

​I am getting below error while trying to use sapjco3 in my Springboot application. I am deploying my application to SAP Cloud foundry environment packaging as war file with tomee7 TARGET_RUNTIME java.lang.NoClassDefFoundError: com/sap/conn/jco/JCo…
0
votes
2 answers

Plans to update s4hana-connectivity to support Apache Http Client 5?

We currently upgrade our project to use Spring 6 & Spring Boot 3. We face some issues with the s4hana-connectivity dependency as it is still relying on org.apache.httpcomponents » httpclient:4.5.14. Are there any plans to upgrade to…
Julian2611
  • 422
  • 3
  • 11
0
votes
2 answers

Using HttpClient as an alternative of Spring RestTemplate

We are trying to replace the Spring RestTemplate from our project because its depreciated So I want to know if that is a good idea to use SAP cloud SDK httpClient as an alternative to Spring RestTemplate.
JUM
  • 25
  • 3
0
votes
1 answer

Latest compatible version of kafka-clientlib with Cloud SDK 4.11

I'm trying to use calm-kafka-clientlib (any version) with the latest SAP Cloud SDK (4.11), and I'm getting the following error: Not able to process incoming message The reason is: Caused by: java.lang.NoSuchMethodError: 'io.vavr.control.Try…
0
votes
1 answer

Access S/4 on-premise from local machine without cloud destination service

I'm trying to access our S/4 on-premise system without any cloud services involved. I', connected to the VPN and can reach our S/4 system and successfully address the BP API service with Postman. When I deploy my app, the whole thing works as well.…
Tobias
  • 4,921
  • 4
  • 31
  • 40
0
votes
1 answer

Timeout settings for SAP Cloud SDK OData client

SAP Cloud SDK OData client provides us a type-safe way to access OData API. However, we are wondering it is possible to configure the different timeout values e.g., connection request timeout, connection timeout and read timeout etc. when we issue…
Eric Jiang
  • 567
  • 1
  • 7
  • 20
0
votes
2 answers

Does OpenAPI client Generator of SAP Cloud SDK supports extensibility fields?

We replicate data from Sales Cloud V2 system to our micro service and our services bases on java. Therefore we use the SAP Cloud SDK openAPI generator, which works fine. In Sales Cloud V2 for some entities the customer has the possibility to add…
asem
  • 3
  • 1
0
votes
1 answer

How to make SAP Cloud SDK OData client send request call to Spring MockMVC fake test servlet and get the response?

We are using Spring MockMVC to test our OData endpoints of our application. The headache part of such integration test is, every time we have to construct the complex OData query url string by ourselves and also we have to serialize the JSON…
Eric Jiang
  • 567
  • 1
  • 7
  • 20
0
votes
1 answer

How to mock the service generated by Cloud SDK when some methods are final?

We are using sap cloud sdk to consume external OData service. In our Unit Tests we use mockito "RETURNS_DEEP_STUBS" approach to mock the service class generated by Cloud SDK but we get null pointer exception: "java.lang.NullPointerException: Cannot…
Eric Jiang
  • 567
  • 1
  • 7
  • 20