예제 #1
0
파일: Parser.cs 프로젝트: umabiel/WsdlUI
        public model.WebSvc Generate(string webSvcPath, List<wsdlDescription.ServiceDescription> descriptions, List<XmlSchema> schemas)
        {
            _log.Info("Start: " + webSvcPath);

            var wsdlGenerator = new GenWsdlData(descriptions[0]);
            string wsdlContent = wsdlGenerator.Generate();

            var metaData = new GenMetaData(descriptions[0]);
            metaData.Parse();

            var sampleData = new Sample.GenSampleData(metaData.ServiceURI, descriptions, schemas);
            model.WebSvcMethodContainer webSvcMethods = sampleData.GenerateSampleData();

            return new model.WebSvc(webSvcPath, metaData.Name, wsdlContent, webSvcMethods);
        }
예제 #2
0
파일: Parser.cs 프로젝트: shachaoshu/WsdlUI
        public model.WebSvc Generate(string webSvcPath, List <wsdlDescription.ServiceDescription> descriptions, List <XmlSchema> schemas)
        {
            _log.Info("Start: " + webSvcPath);

            var    wsdlGenerator = new GenWsdlData(descriptions[0]);
            string wsdlContent   = wsdlGenerator.Generate();

            var metaData = new GenMetaData(descriptions[0]);

            metaData.Parse();

            var sampleData = new Sample.GenSampleData(metaData.ServiceURI, descriptions, schemas);

            model.WebSvcMethodContainer webSvcMethods = sampleData.GenerateSampleData();

            return(new model.WebSvc(webSvcPath, metaData.Name, wsdlContent, webSvcMethods));
        }