示例#1
0
        private static void Load(string uri, string filename)
        {
            WsdlDocumentLoader loader = new WsdlDocumentLoader();
            var doc = loader.LoadAsync(new Uri(uri)).Result;

            doc.Save(filename);
        }
示例#2
0
        private static void DownloadWsdl(List <AppParameter> appParameters)
        {
            var wsdlUri = appParameters.GetParameter("wsdlUri");

            if (wsdlUri == null)
            {
                Console.WriteLine("wsdlUri parameter is required");
                return;
            }

            var outPath = appParameters.GetParameter("outPath");

            if (outPath == null)
            {
                Console.WriteLine("outPath parameter is required");
                return;
            }

            WsdlDocumentLoader loader = new WsdlDocumentLoader();
            var doc = loader.LoadAsync(new Uri(wsdlUri)).Result;

            doc.Save(outPath);
        }