【发布时间】:2011-05-06 05:29:24
【问题描述】:
我试过这个...但它不起作用..
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
【问题讨论】:
-
“不工作”是什么意思?请添加错误消息
标签: vb.net wcf channelfactory