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