private void VerifyClicked() { string errortext = "URL is invalid. Please try again."; try { // Try to get the database version at the url specified osVodigiWS.osVodigiServiceSoapClient ws = new osVodigiWS.osVodigiServiceSoapClient(); ws.Endpoint.Address = new System.ServiceModel.EndpointAddress(new Uri(txtVodigiWebserviceURL.Text.Trim())); osVodigiWS.DatabaseVersion version = ws.DatabaseVersion_Get(); if (version == null) { lblError.Text = errortext; } else { PlayerConfiguration.configVodigiWebserviceURL = txtVodigiWebserviceURL.Text.Trim(); FadeOut(); } } catch { lblError.Text = errortext; } }
public void Test_DatabaseVersion_Get() { osVodigiWS.osVodigiServiceSoapClient ws = new osVodigiWS.osVodigiServiceSoapClient(); osVodigiWS.DatabaseVersion version = ws.DatabaseVersion_Get(); }