Type mismatch error in soapmapper

0

What could be causing the error

Soapmapper: converting data for soapmapper failed inside the typemapper
HRESULT=0x80020005: type mismatch

when running the code below?

'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)
vba
soap
asked on Stack Overflow Jul 7, 2014 by Jam • edited Jul 7, 2014 by Ansgar Wiechers

1 Answer

1

Module is a reserved word in VBA. Try changing this in your code and see if it works.

'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)
answered on Stack Overflow Jul 7, 2014 by Gareth

User contributions licensed under CC BY-SA 3.0