Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to enable HTTPS authentication in java client to consume IoT web services

Hello,

I just created a HTTPS GET json web service from IOT in HCP https://s9hanaxs.hanatrial.ondemand.com/d062610trial/ibeaconrui/iotservice.xsodata/T_IOT_02FC2D4FE09981C1FC20_1?$format=…

and need to consume it to retrieve the data in a Java client, but really don't know how to handle the SSL certificate and authentication, could anyone please help here?

Many Thanks!

Best regards,

Ruixing

Tags:
Former Member
replied

Hello Ruixing,

it depends what Java API you use to process HTTP requests/responses. Your XS OData service is protected with FORM based authentication I suppose. So, if you would choose Apache HTTP, then please have a look on the example "Form based logon" by the following link https://hc.apache.org/httpcomponents-client-ga/examples.html

Regards,

Anton

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question