web service to store data in XML file
Let's say i have created one web service which acquire some information from the user. Then i would like to know how can i create another web service in order to stored those information i got from the user into a XML file or into a database?
Any example of codes? please help .urgent.. Thanks a lot.
If the information entered is in a object and is the object is serialisable you serialize the object into a xml file with the need for a new webservice
XmlSerializer xs = new XmlSerializer(typeof(namespace.classname));
StreamWriter xw = new StreamWriter(filename, false);
For a database you could do it instead of the serialization
Last Post: 06-11-2012, 09:10 PM
By xxxxx in forum ASP.NET
Last Post: 07-14-2005, 12:16 PM
By cormac in forum ASP.NET
Last Post: 06-21-2005, 12:01 PM
By LeRoyB in forum ASP.NET
Last Post: 05-03-2005, 04:39 PM
By Constance J. Petersen in forum .NET
Last Post: 08-28-2002, 11:06 PM
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL