cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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_02FC2D4FE09...

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

Accepted Solutions (1)

Accepted Solutions (1)

anton_levin
Advisor
Advisor
0 Kudos

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

Answers (1)

Answers (1)

0 Kudos

For those who met the same issue, please check this link: