Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Create a XML Node
Message
From
25/11/2003 09:45:48
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Web Services
Title:
Create a XML Node
Miscellaneous
Thread ID:
00853275
Message ID:
00853275
Views:
37
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);

Next
Reply
Map
View

Click here to load this message in the networking platform