Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing data from a .NET WebService to a VFP app
Message
From
06/02/2004 11:18:52
Sanero Daniela
Calcol Informatica
Legnano, Italy
 
 
To
All
General information
Forum:
ASP.NET
Category:
Web Services
Title:
Passing data from a .NET WebService to a VFP app
Miscellaneous
Thread ID:
00874855
Message ID:
00874855
Views:
44
I would pass 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 nothing, no error occours and mycursor is always blank.

Some suggestion?

Thanks in advance
Daniela
Next
Reply
Map
View

Click here to load this message in the networking platform