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); }
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)); }