public DataElementCreationControl()
        {
            InitializeComponent();

            scrollView.MinHeight = System.Windows.SystemParameters.PrimaryScreenHeight*0.8;
            scrollView.Height = System.Windows.SystemParameters.PrimaryScreenHeight*0.8;

            //Remove this for better security
            ServicePointManager.ServerCertificateValidationCallback = delegate(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors)
            {
                //ignore invalid SSL: allow this client to communicate with unauthenticated servers
                return true;
            };

            this.Loaded += new RoutedEventHandler(DataElementCreationControl_Loaded);

            derClient = new DataElementReduced.DataElementReducedPortTypeClient("DataElementReducedSOAP12port_https");
            derClient.ClientCredentials.UserName.UserName = "******";
            derClient.ClientCredentials.UserName.Password = "******";

            altNames = new ObservableCollection<string>();
            otherNames.ItemsSource = altNames;

            validValues = new ObservableCollection<ValidValue>();
            validValueList.ItemsSource = validValues;
        }
 private void initSubmitClient(String username, String password)
 {
     submitClient = new DataElementReduced.DataElementReducedPortTypeClient("DataElementReducedSOAP12port_https");
     submitClient.ClientCredentials.UserName.UserName = username;
     submitClient.ClientCredentials.UserName.Password = password;
 }