[求助] "太急了!!"新手对VB6调用WebService问题的求助!!

[复制链接]
查看11 | 回复0 | 2007-4-3 18:05:00 | 显示全部楼层 |阅读模式
各位高手:
我现在用VB6写了个COM,名字为DocSampleService.Sample1,提供一个方法:AddNumbers(g1 as double,g2 as double) as Double. 并且我已经用Soap Toolkit 3.0生成了WebService的相关文件,.wsdl,.wsml等,并部署在IIS下.
我在浏览器中写入:http://localhost/soap/DocSample1 ... 某绦?代码大至如下:
Private Sub Command1_Click()
Dim myService As New SoapClient30
Dim p As String
Dim g1 As Double, g2 As Double, g3 As Double
myService.MSSoapInit "http://192.168.1.91/Soap/DocSample1/Server/DocSample1.wsdl", , , "http://192.168.1.91/Soap/DocSample1/Server/DocSample1.wsml"
g1 = 56.89
g2 = 90#
g3 = myService.AddNumbers(g1, g2)
End Sub
结果报了错误:Client:An unanticipated error occurred during the processing of this request. HRESULT=0x800A13BE - Client:Sending the Soap message failed or no recognizable response was received HRESULT=0x800A13BE - Client:Unspecified client error. HRESULT=0x800A13BE
现在我需要类似的应用在一个项目中,工期要求很紧,所以很着急,请高手给我指点迷津啊,多谢了!!!!!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行