Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing data from a .NET WebService to a VFP app
Message
De
05/02/2004 07:19:00
Sanero Daniela
Calcol Informatica
Legnano, Italie
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro et .NET
Titre:
Passing data from a .NET WebService to a VFP app
Divers
Thread ID:
00874366
Message ID:
00874366
Vues:
42
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
Répondre
Fil
Voir

Click here to load this message in the networking platform