Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create a Node List
Message
De
02/12/2003 09:08:32
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
XML
Titre:
Create a Node List
Divers
Thread ID:
00854981
Message ID:
00854981
Vues:
68
Hi!

I have some C# code which works fine. I need to convert it to VFP and call a webservice and pass it an XML Node. (not sure how to create a XML Node from an XML file in VFP everything else works fine). Posted this in the VFP Forum but did not get an answer.

Service1 is the Webservice and DataXmlNodeMethod is a web method which needs an XML Node as a parameter.

Thanks in advance.

Sarosh

string xmlPath;
string sResult;

// Set Xml File
xmlPath = @"C:\temp\DataImport.xml";

// Send XmlNode
XmlDocument doc = new XmlDocument();
XmlTextReader reader = new XmlTextReader(xmlPath);
reader.MoveToContent();

XmlNode datanode = doc.ReadNode(reader);
Service1 proxy = new Service1();
sResult = proxy.DataXmlNodeMethod(datanode);
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform