Skip to Content

Configuring xshttpdest destination in hana xs for java rest calls

Dec 01, 2017 at 01:21 PM


avatar image
Former Member

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 = "";
port = 443;
pathPrefix = "/mail";
useProxy = true;
proxyType = http;
proxyHost = "proxy";
proxyPort = 8080;
authType = none;
useSSL = true;
timeout = 0;
sslHostCheck = true;
sslAuth = client;



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Richard Zhao
Dec 19, 2017 at 06:51 AM

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

  "exposed": true,
  "authentication" : null
10 |10000 characters needed characters left characters exceeded