calling c# webservice from VB6
All,
I am getting an error on oRecordset.Open oDOMDocumentResult
The error is "Recordset cannot be created. Source XML is incorrect or invalid."
Does anyone know of any XML converter for me to be able to create the recordset? I can only change the VB6 code as i cannot alter the webservice.
Thanks
G
Dim oSoapClient As MSSOAPLib30.SoapClient30
Dim oIXMLDOMNodeListResult As MSXML2.IXMLDOMNodeList
Set oSoapClient = New SoapClient30
Dim oDOMDocumentResult As MSXML2.DOMDocument
oSoapClient.MSSoapInit "http://servername:81/PSIProxy/WebservicePage.asmx?WSDL", "WebserviceName"
Set oIXMLDOMNodeListResult = oSoapClient.WebserviceMethod("TESTACT", "TESTPARM")
oDOMDocumentResult.LoadXml oIXMLDOMNodeListResult.Item(1).xml
Set objNodeList = oDOMDocumentResult.selectNodes("//NewDataSet/Table/ACTIVITY_ID/text()")
Set oRecordset = New ADODB.Recordset
oRecordset.Open oDOMDocumentResult
|