How to enable HTTPS authentication in java client to consume IoT web services
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?
Anton Levin replied
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