Hi,
How to convert XML file to WSDL file using C# or ASP .NET.
Thank you.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Raja TRank #685 · 3.5K reputationPosted Jul 22, 2015, 4:19 AM EDT
Love Hammad174 reputationPosted Jul 22, 2015, 4:42 AM EDT
Raja TRank #685 · 3.5K reputationPosted Jul 22, 2015, 4:52 AM EDT
string uri = "http://server/Service.asmx?wsdl";
WebRequest request = WebRequest.Create(uri);
WebResponse response = request.GetResponse();
byte[] buffer = new byte[response.ContentLength];
response.GetResponseStream().Read(buffer, 0, buffer.Length);
File.WriteAllBytes(@"C:\wsdl.xml", buffer);
Raja TRank #685 · 3.5K reputationPosted Jul 22, 2015, 4:58 AM EDT
Love Hammad174 reputationPosted Jul 23, 2015, 8:13 AM EDT