C# .NET web services: Manipulating XML
-
Hi, I am developing a web service in C#.Net1.1 and a new bee to .NET. I have developed a web method to retrieve the data from database and I want to sent the response in the form of XML.I want to manipulate the dataset to get the desired XML.But I dont know how to do that? Can somebody help me in formatting the XML. Also, once I will format the XML, what return type I should use in web method to get XML file as output. Thanks in advance. Example: Current XML: - P750
- 7501430 - 448.9300 Required XML: xml version="1.0" ?> 123445
-
Hi, I am developing a web service in C#.Net1.1 and a new bee to .NET. I have developed a web method to retrieve the data from database and I want to sent the response in the form of XML.I want to manipulate the dataset to get the desired XML.But I dont know how to do that? Can somebody help me in formatting the XML. Also, once I will format the XML, what return type I should use in web method to get XML file as output. Thanks in advance. Example: Current XML: - P750
- 7501430 - 448.9300 Required XML: xml version="1.0" ?> 123445
-
In which format you want the XML. You need to first learn basic XML.You'll get the answer Check the link [^]">
Cheers!! Brij
Thanks for repling. I know basics of XML. In my post earlier Tags didnt come. I want to cutomize the tags according to the requirement rather than getting the Tags for the default database.
-
Thanks for repling. I know basics of XML. In my post earlier Tags didnt come. I want to cutomize the tags according to the requirement rather than getting the Tags for the default database.
-
Hi, I am developing a web service in C#.Net1.1 and a new bee to .NET. I have developed a web method to retrieve the data from database and I want to sent the response in the form of XML.I want to manipulate the dataset to get the desired XML.But I dont know how to do that? Can somebody help me in formatting the XML. Also, once I will format the XML, what return type I should use in web method to get XML file as output. Thanks in advance. Example: Current XML: - P750
- 7501430 - 448.9300 Required XML: xml version="1.0" ?> 123445
What database are you using? If its SQL Server you can use the FORXML clause to format the resultset. Also, why use .NET 1.1? It is very outdated, 2.0 is the minimum you should be working with.
only two letters away from being an asset