Monthly Archives: November 2008

A “WCF pattern” for updating client URLs to a Web Service

protected Configuration _appConfig = null; protected ServiceModelSectionGroup _appConfigServiceModelSection = null; public const string MyEndPoint = "contractType:myNamespace.ImyInterface;name:myEndpointName"; private void URISettingsForm_Load(object sender, EventArgs e) { Uri myTextBox= _appConfigServiceModelSection.Client.Endpoints[MyEndPoint].Address; myServiceAddressTextBox.Text = myServiceUri.ToString(); }     private void myButton_Click(object sender, EventArgs e) { Uri … Continue reading

Posted in Software Development | Leave a comment