Add getEndpoints method to ServiceClient

Of course. Stupid of me.