0
我想這一個...但它不工作..有誰知道如何使用渠道工廠的客戶端訪問wcf服務?
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim channel As New ChannelFactory(Of IWidgetServiceProxy)(
New WSHttpBinding(),
"http://localhost:4676/WidgetServiceProxy.svc")
Dim client As IWidgetServiceProxy = channel.CreateChannel()
Dim str As String = client.GetWidgetInstanceTitle()
Response.Write(str)
'ProcessStatuses(resp)
End Sub
你是什麼意思是「不工作」?請添加錯誤信息 – jeroenh 2011-05-06 06:02:31