在soapmapper中键入不匹配错误

时间:2014-07-07 10:52:30

标签: vba soap

可能导致错误的原因

  

Soapmapper:在类型映射器中转换soapmapper的数据失败   HRESULT = 0x80020005:类型不匹配

运行下面的代码?

's is a valid XML 
xml_doc.LoadXML s

Dim Nds As MSXML2.IXMLDOMNodeList
Set Nds = xml_doc.ChildNodes

Dim module As clsws_ProfileManagement
Set module = New clsws_ProfileManagement

Set Value = module.wsm_MyProcedure(Nds)

1 个答案:

答案 0 :(得分:1)

Module是VBA中的保留字。尝试在代码中更改此代码,看看它是否有效。

's is a valid XML 
xml_doc.LoadXML s

Dim Nds As MSXML2.IXMLDOMNodeList
Set Nds = xml_doc.ChildNodes

Dim modu As clsws_ProfileManagement
Set modu = New clsws_ProfileManagement

Set Value = modu.wsm_MyProcedure(Nds)