用VB6来调用webservice的方法
代码如下:
我已经添加了SOAP3.0的引用,webservice是.NET写的
.....................................
Dim data() As Byte
Dim PropertyData() As Variant
Dim ss As New SoapClient30
Set ss = CreateObject("mssoap.SoapClient30")
Call ss.MSSoapInit("http://file1.99.com/99Interface/99InterfaceService.asmx?WSDL")
Call ss.Send(data, "UID", "PWD", "Send_Num", "", 0, 0, "收件人", "发送人", "接收公司", "2007-03-14 13:06:01", "ccc.doc", PropertyData)
...................................................
用VB6来调用webservice的方法Send,可是就是有错误。错误编号是:-2147467259;错误描述为:System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Interface.99.99InterfaceService.Send(Byte[] fs, String User_id, String Passwd, String Send_Num, String Send_Csid, Int32 RESEND_TIMES, Int32 RESEND_DELAY, String Receiver, String Sender, String TO_COMPANY, String SendTime, String SendFile, PropertyData[] details) in d:\99\web\99Interface\App_Code\99InterfaceService.cs:line 425
--- End of inner exception stack trace ---
Send方法的原形是:Send(Byte[] fs, String User_id, String Passwd, String Send_Num, String Send_Csid, Int32 RESEND_TIMES, Int32 RESEND_DELAY, String Receiver, String Sender, String TO_COMPANY, String SendTime, String SendFile, PropertyData[] details)
请问这个错误怎么解决呀?麻烦帮帮忙,谢谢