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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement