Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create a XML Node
Message
De
25/11/2003 09:45:48
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Titre:
Create a XML Node
Divers
Thread ID:
00853275
Message ID:
00853275
Vues:
36
Hi!

I had posted this some time ago but could not get a solution so I am trying again.

I have 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)

Thanks in advance.

Sarosh


string xmlPath;
string sResult;

// Set Xml File
xmlPath = @"C:\wsdata\dataimport.xml";

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

//Service1 is the webservice and DataXmlNodeMethod is the webmethod
Service1 proxy = new Service1();
sResult = proxy.DataXmlNodeMethod(apNode);

Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform