Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
|
Pro VB 6 For advanced Visual Basic coders working in version 6 (not .NET). Beginning-level questions will be redirected to other forums, including Beginning VB 6.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 8th, 2008, 09:15 AM
GS GS is offline
Authorized User
 
Join Date: Sep 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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
 
Old April 8th, 2008, 09:16 AM
GS GS is offline
Authorized User
 
Join Date: Sep 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry for info the xml that is being passed to oRecordset.Open is:

<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"><NewDataSet xmlns=""><Table diffgr:id="Table1" msdata:rowOrder="0"><ACTIVITY_ID>001</ACTIVITY_ID></Table><Table diffgr:id="Table2" msdata:rowOrder="1"><ACTIVITY_ID>70F</ACTIVITY_ID></Table><Table diffgr:id="Table3" msdata:rowOrder="2"><ACTIVITY_ID>70M</ACTIVITY_ID></Table><Table diffgr:id="Table4" msdata:rowOrder="3"><ACTIVITY_ID>70X</ACTIVITY_ID></Table><Table diffgr:id="Table5" msdata:rowOrder="4"><ACTIVITY_ID>C11</ACTIVITY_ID></Table><Table diffgr:id="Table6" msdata:rowOrder="5"><ACTIVITY_ID>K18</ACTIVITY_ID></Table><Table diffgr:id="Table7" msdata:rowOrder="6"><ACTIVITY_ID>L12</ACTIVITY_ID></Table><Table diffgr:id="Table8" msdata:rowOrder="7"><ACTIVITY_ID>L13</ACTIVITY_ID></Table><Table diffgr:id="Table9" msdata:rowOrder="8"><ACTIVITY_ID>L14</ACTIVITY_ID></Table><Table diffgr:id="Table10" msdata:rowOrder="9"><ACTIVITY_ID>L21</ACTIVITY_ID></Table><Table diffgr:id="Table11" msdata:rowOrder="10"><ACTIVITY_ID>L22</ACTIVITY_ID></Table><Table diffgr:id="Table12" msdata:rowOrder="11"><ACTIVITY_ID>L58</ACTIVITY_ID></Table><Table diffgr:id="Table13" msdata:rowOrder="12"><ACTIVITY_ID>M32</ACTIVITY_ID></Table><Table diffgr:id="Table14" msdata:rowOrder="13"><ACTIVITY_ID>M35</ACTIVITY_ID></Table></NewDataSet></diffgr:diffgram>
 
Old February 26th, 2016, 09:28 AM
Registered User
 
Join Date: Feb 2016
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default access Vb.6 function from C# web service

how to access Vb.6 function from C# web service? http://www.codingcabinet.com/questio...c-web-service/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Calling Webservice from application premalm ASP.NET 2.0 Professional 3 October 17th, 2008 03:24 AM
Error calling a method in the webservice madhusrp .NET Web Services 1 April 12th, 2007 08:54 AM
calling webservice in console app error msrnivas General .NET 1 October 25th, 2006 09:38 PM
Calling COM+ component from webservice yossarian .NET Web Services 0 January 17th, 2005 02:29 PM
Calling WebService from VB6 without use SOAP toolk sanjaykabra82 .NET Web Services 1 February 25th, 2004 08:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.