If you're asking a woman out for a drink in a workplace situation, especially where you are her boss or other superior where refusal could affect her job, yes that's harassment.  (The same applies if genders are reversed.)  If you're in a social setting, it's fine. 

Context is key. Be professional at work.