Setting service endpoint if it's not provided