Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create a Node List
Message
From
02/12/2003 09:08:32
 
 
To
All
General information
Forum:
ASP.NET
Category:
XML
Title:
Create a Node List
Miscellaneous
Thread ID:
00854981
Message ID:
00854981
Views:
69
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);
Next
Reply
Map
View

Click here to load this message in the networking platform