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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Love HammadPosted Jul 23, 2015, 12:13 PM
Raja TPosted Jul 22, 2015, 8:58 AM
Raja TPosted Jul 22, 2015, 8:52 AM
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);
Love HammadPosted Jul 22, 2015, 8:42 AM
Raja TPosted Jul 22, 2015, 8:19 AM