Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing data from a .NET WebService to a VFP app
Message
De
06/02/2004 11:18:52
Sanero Daniela
Calcol Informatica
Legnano, Italie
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Web Services
Titre:
Passing data from a .NET WebService to a VFP app
Divers
Thread ID:
00874855
Message ID:
00874855
Vues:
43
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform