Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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));
        }