Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Pro VB 6
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old April 8th, 2008, 09:15 AM
GS GS is offline
Authorized User
 
Join Date: Sep 2003
Location: , , .
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
Reply With Quote
  #2 (permalink)  
Old April 8th, 2008, 09:16 AM
GS GS is offline
Authorized User
 
Join Date: Sep 2003
Location: , , .
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>
Reply With Quote
  #3 (permalink)  
Old February 26th, 2016, 08:28 AM
Registered User
Points: 3, Level: 1
Points: 3, Level: 1 Points: 3, Level: 1 Points: 3, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
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/
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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 01:29 PM
Calling WebService from VB6 without use SOAP toolk sanjaykabra82 .NET Web Services 1 February 25th, 2004 07:30 AM



All times are GMT -4. The time now is 08:06 AM.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.