转: 用VB调用Webservice
转: http://blog.csdn.net/luojingjing/archive/2008/10/16/1909081.aspx 关键字:VB,WebService,C#, [WebMethod] 3 在VB中添加以下代码: Private Sub Command1_Click()
soapClient.MSSoapInit "http://localhost:2239/DemoWebService/Service.asmx?WSDL" text = soapClient.HelloWorld '此处直接写服务端方法名 MsgBox text Dim total As Integer total = soapClient.Add(2,3) MsgBox totalEnd Sub (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |