Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing data from a .NET WebService to a VFP app
Message
From
05/02/2004 07:19:00
Sanero Daniela
Calcol Informatica
Legnano, Italy
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro and .NET
Title:
Passing data from a .NET WebService to a VFP app
Miscellaneous
Thread ID:
00874366
Message ID:
00874366
Views:
41
I would passing data from a .NET Webservice to a VFP app.
I downloaded the class wwxml.vcx and I'm trying to use the method DataSetXMLToCursor.

I have a webservice in .NET with a method like this

WebMethod(Description:="return dataset in xml string", EnableSession:=False) _
Public Function Test() As String
Dim myDataSet As New DataSet
Me.myOledbDataAdapter.Fill(myDataSet)
Return myDataSet.GetXml
end Function

in my VFP app I have something like this

local lcXml, llRet

oWs = CREATEOBJECT("MSSOAP.SoapClient")
oWs.MSSoapInit("http://myservername/mywebservice.wsdl")
lcXml=oWs.Test()
release oWs

*** Pre-create the cursor with the same structure as .net Dataset
CREATE CURSOR mycursor ;
( MC_1 C(1) ,;
MC_2 C (1),;
MC_3 C(1))

oXML = CREATEOBJECT("wwXML")
llRet = oXML.DataSetXMLToCursor(lcXml,"mycursor")

The method DataSetXMLToCursor always return .F. and mycursor always is blank.
Can anyone help me?

Thanks in advance
Daniela
Reply
Map
View

Click here to load this message in the networking platform