protected void Login(DatabaseDotComContext context)
 {
     System.Diagnostics.Debug.WriteLine("\nLOGGING IN\n");
     context.loginResult = soapclient.login(context.loginScopeHeader, context.callOptions, context.username, context.password);
     context.sessionHeader = new DBDCReference.SessionHeader();
     context.sessionHeader.sessionId = context.loginResult.sessionId;
 }
 public DatabaseDotComContext Login(string userName, string password, string authToken)
 {
     context = new DatabaseDotComContext(userName, password, authToken);
     context.loginResult = soapclient.login(context.loginScopeHeader, context.callOptions, context.username, context.password);
     context.sessionHeader = new DBDCReference.SessionHeader();
     context.sessionHeader.sessionId = context.loginResult.sessionId;
     return context;
 }
 public DatabaseDotComClient(DatabaseDotComContext context) 
 {
     soapclient = new DBDCReference.SoapClient("Soap");
     if (context.loginResult == null)
     {
         Login(context);
     }
     soapclient = new DBDCReference.SoapClient("Soap", context.loginResult.serverUrl);
     this.context = context;
 }