Skip to Content
avatar image
-1
Former Member

Configuring xshttpdest destination in hana xs for java rest calls

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • 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
    }
    Add comment
    10|10000 characters needed characters exceeded