Endpoint::host and Endpoint::service should be required attributes.

Fixes #4752