cancel
Showing results for 
Search instead for 
Did you mean: 

Configuring xshttpdest destination in hana xs for java rest calls

0 Kudos

Dear All,

I have a java application to send emails using gmail smtp config. The email will be sent using the REST calls. I want to consume this service in HANA XS-JS as an outbound call. I have configured the xshttpdest file and added the certificate in trust store since its a https call. But when I try to call the mail REST service I get error "HttpClient.request: request failed: internal error occurred "Failed to send request to socket...rc = -1"".
I tried changing the port to 80, 443, 8080 but did not solve the issue. Am I missing out anything in the configuration?

xshttpdest file config:

description = "Mail config";
host = "mail1XXXXXXX.hana.ondemand.com";
port = 443;
pathPrefix = "/mail";
useProxy = true;
proxyType = http;
proxyHost = "proxy";
proxyPort = 8080;
authType = none;
useSSL = true;
timeout = 0;
sslHostCheck = true;
sslAuth = client;

Thanks,

Mayur

Accepted Solutions (0)

Answers (1)

Answers (1)

richard-zhao
Employee
Employee
0 Kudos

Hello, Mayur. I suggest that you should check your .xsaccess to see whether you have eliminated authentication.

{
  "exposed": true,
  "authentication" : null
}