我们有一个 Java Web 服务 (WSDL) 和一个 ASP 客户端。我们正在使用 SOAP Toolkit 3.0 来调用 Java Web 服务。Java Web 服务正在公开对象,因此我需要使用复杂的类型映射器。
当我尝试这个时,我得到了错误 -
SoapMapper:Saving SoapMapper account failed HRESULT=0x80004002: No such interface supported - Client:Unspecified client error. HRESULT=0x80004002: No such interface supported
代码是:
On Error Resume Next
Dim objWebSvcClient
Dim strSuccess
Dim myaccount
set objWebSvcClient = server.CreateObject("MSSOAP.SoapClient30")
objWebSvcClient.ClientProperty("ServerHTTPRequest") = True
objWebSvcClient.MSSoapInit ("c:\TestAsp.wsdl")
class Account
Dim maccid 'As String
Dim maccName 'As String
Public Property Get accId() 'As String
accId = maccid
End Property
Public Property Let accId(ByVal Value )
maccid = Value
End Property
Public Property Get accName() 'As String
accName = maccName
End Property
Public Property Let accName(ByVal Value )
maccName = Value
End Property
End class
Set myaccount = new Account
myaccount.accId = "ABC"
myaccount.accName = "ABC"
strSuccess = objWebSvcClient.setAccount(myaccount)
如果我遗漏了一些信息,请告诉我。
参考一些执行相同实现的示例也会有所帮助。