It seems like your service is either unreachable from internet or you must've given a wrong end point.
Can you call the same end point from your internal landscape of your ECC and check if it is working?
If it is, then you must've probably not configured the DNS settings for your hostname in your ECC for applications over internet to call it.