Skip to Content

Calling a java application from cloud platform in Hana XSJS using HTTP destination

Hi,

I am trying to call the Java application from Cloud platform in hana xsjs but getting following error.

""Error while executing query: [HttpClient.request: request failed: internal error occurred "Failed to send request to socket...rc = -1"

HTTP Destination :

XSJS Code

URL

https://**********.us1.hana.ondemand.com/MailerService/MailServlet

P.S : I have tested the service using the POSTMAN and it works perfectly fine.

Please let me know the error or is there any other way to connect to the java service in the Hana cloud Platform

http-dest.jpg (39.4 kB)
http-dest.jpg (39.4 kB)
xsjs.jpg (89.9 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Dec 22, 2017 at 02:53 PM

    I don't see the xshttpdest file you attached here. Could you please edit the question and add this information again?

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 06, 2017 at 02:26 AM

    Hello, Velraj. Have you assigned the trust Stores to your HTTP Destinations? Could you refer to the link below to check, please? thanks

    https://help.sap.com/viewer/65de2977205c403bbc107264b8eccf4b/Cloud/en-US/0cb7e601bac244f0820dfc4b286d120a.html

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Dec 08, 2017 at 11:22 AM

    Hi Richard,

    I have added the Trust store but still getting the same error.

    403

    Thanks,

    Mayank

    Add comment
    10|10000 characters needed characters exceeded