How to connect BEC to the servo rail?

I am not completely sure about that, you can use a multimeter to check the voltage on the servo rail. Otherwise use a separate BEC, there are plenty of them in any RC shop.