How to call service with parameters on button click event ? Please suggest me.

Myservice url are:-http://localhost:51047/SenchaTest/login.aspx
and parameters are:- UserId and Password