摘要:動態建立WCF連接服務
在Silverlight專案中, ServiceReferences.ClientConfig裡面記錄了連接WCF服務的連接訊息, 如果想要在程式中自訂連接, 就必須在建立WCF物件時給予連接資訊.
WCF_SLClient wcf = null;
wcf = new WCFService.WCF_SLClient(new BasicHttpBinding(), new EndpointAddress("http://localhost:5985/WCF_SL.svc"));