Hi all ,
I use the following web method to give xml file
- public XmlDocument CustomertList()
- {
-
- conn = ConfigurationManager.AppSettings["ConnectionString"];
-
- SqlXmlCommand cmd = new SqlXmlCommand(conn);
- cmd.CommandType = SqlXmlCommandType.Sql;
-
- cmd.CommandText = "select name_english,ID from customers FOR XML AUTO,ELEMENTS XSINIL,ROOT('patients')";
- XmlReader xr = cmd.ExecuteXmlReader();
-
-
- XmlDocument myXmlDocument = new XmlDocument();
- myXmlDocument.Load(xr);
-
- return myXmlDocument;
- }
|
I want to get the XmlDocument by type the url (for example ) http://localhost:8088/IOSService.asmx?op=CustomertList
I need to have rss xml file , I mean I want to give the user url that give him / her the resulted xml
any suggestion please
Suthish NairRank #92 · 22.8K reputationPosted Feb 8, 2011, 8:36 AM EST
Ali Mahmoud49 reputationPosted Feb 8, 2011, 9:01 AM EST