diff --git a/nsw/Source/bsmd.nsw.service/IService.cs b/nsw/Source/bsmd.nsw.service/IService.cs new file mode 100644 index 00000000..46f5d00c --- /dev/null +++ b/nsw/Source/bsmd.nsw.service/IService.cs @@ -0,0 +1,36 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.Serialization; +using System.ServiceModel; +using System.ServiceModel.Web; +using System.Text; +using bsmd.database; + +namespace bsmd.nsw.service +{ + // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together. + [ServiceContract] + public interface IService + { + + [OperationContract] + NSWEntry[] GetData(string poc, DateTime? from , DateTime? to); + + } + + [DataContract] + public class NSWEntry + { + + [DataMember] + public string PoC; + + [DataMember] + public STAT STAT { get; set; } + + [DataMember] + public NOA_NOD NOA_NOD { get; set; } + + } +} diff --git a/nsw/Source/bsmd.nsw.service/Properties/AssemblyInfo.cs b/nsw/Source/bsmd.nsw.service/Properties/AssemblyInfo.cs new file mode 100644 index 00000000..535d17ae --- /dev/null +++ b/nsw/Source/bsmd.nsw.service/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("bsmd.nsw.service")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("bsmd.nsw.service")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("ac61d284-d3c1-4139-86a1-83459dc1c4e0")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Revision and Build Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/nsw/Source/bsmd.nsw.service/Service.svc b/nsw/Source/bsmd.nsw.service/Service.svc new file mode 100644 index 00000000..6a4eb2b2 --- /dev/null +++ b/nsw/Source/bsmd.nsw.service/Service.svc @@ -0,0 +1 @@ +<%@ ServiceHost Language="C#" Debug="true" Service="bsmd.nsw.service.Service1" CodeBehind="Service.svc.cs" %> \ No newline at end of file diff --git a/nsw/Source/bsmd.nsw.service/Service.svc.cs b/nsw/Source/bsmd.nsw.service/Service.svc.cs new file mode 100644 index 00000000..bd5a9aaf --- /dev/null +++ b/nsw/Source/bsmd.nsw.service/Service.svc.cs @@ -0,0 +1,33 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Runtime.Serialization; +using System.ServiceModel; +using System.ServiceModel.Web; +using System.Text; + +namespace bsmd.nsw.service +{ + // NOTE: You can use the "Rename" command on the "Refactor" menu to change the class name "Service1" in code, svc and config file together. + // NOTE: In order to launch WCF Test Client for testing this service, please select Service1.svc or Service1.svc.cs at the Solution Explorer and start debugging. + public class Service1 : IService + { + public string GetData(int value) + { + return string.Format("You entered: {0}", value); + } + + public CompositeType GetDataUsingDataContract(CompositeType composite) + { + if (composite == null) + { + throw new ArgumentNullException("composite"); + } + if (composite.BoolValue) + { + composite.StringValue += "Suffix"; + } + return composite; + } + } +} diff --git a/nsw/Source/bsmd.nsw.service/Web.Debug.config b/nsw/Source/bsmd.nsw.service/Web.Debug.config new file mode 100644 index 00000000..c1a56423 --- /dev/null +++ b/nsw/Source/bsmd.nsw.service/Web.Debug.config @@ -0,0 +1,30 @@ + + + + + + + + + + \ No newline at end of file diff --git a/nsw/Source/bsmd.nsw.service/Web.Release.config b/nsw/Source/bsmd.nsw.service/Web.Release.config new file mode 100644 index 00000000..19058ed3 --- /dev/null +++ b/nsw/Source/bsmd.nsw.service/Web.Release.config @@ -0,0 +1,31 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/nsw/Source/bsmd.nsw.service/Web.config b/nsw/Source/bsmd.nsw.service/Web.config new file mode 100644 index 00000000..f49e1619 --- /dev/null +++ b/nsw/Source/bsmd.nsw.service/Web.config @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/nsw/Source/bsmd.nsw.service/bsmd.nsw.service.csproj b/nsw/Source/bsmd.nsw.service/bsmd.nsw.service.csproj new file mode 100644 index 00000000..29ffedb7 --- /dev/null +++ b/nsw/Source/bsmd.nsw.service/bsmd.nsw.service.csproj @@ -0,0 +1,123 @@ + + + + Debug + AnyCPU + + + 2.0 + {AC61D284-D3C1-4139-86A1-83459DC1C4E0} + {349c5851-65df-11da-9384-00065b846f21};{fae04ec0-301f-11d3-bf4b-00c04f79efbc} + Library + Properties + bsmd.nsw.service + bsmd.nsw.service + v4.5.2 + True + true + true + + + + + + + + + true + full + false + bin\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + Service.svc + + + + + + + + + + Web.config + + + Web.config + + + + + {19945af2-379b-46a5-b27a-303b5ec1d557} + bsmd.database + + + + 10.0 + $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + + + + + + + + True + True + 2251 + / + http://localhost:2251/ + False + False + + + False + + + + + + \ No newline at end of file