createClientEndpoint