Getting connected to EWS