各位高手:
我现在用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
现在我需要类似的应用在一个项目中,工期要求很紧,所以很着急,请高手给我指点迷津啊,多谢了!!!!! |