Changing the constructors for service class

Changing the constructors for service class to take username, password and service url as part of constructor.