From 8db90cdc842951dbf1341fb64fe6876638dc8237 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 12 Sep 2023 10:08:24 +0200 Subject: [PATCH 1/2] Bozza iniziale comunicazione GOMBA --- EgwProxy.Gomba.Test/App.config | 15 + .../EgwProxy.Gomba.Test.csproj | 1 + EgwProxy.Gomba.Test/Program.cs | 16 +- EgwProxy.Gomba/App.config | 15 + ...y.Gomba.GombaServ.gestWeightOut.datasource | 10 + ...mba.GombaServ.memWeightResponse.datasource | 10 + ...GombaServ.reqWeightListResponse.datasource | 10 + ...mba.GombaServ.reqWeightResponse.datasource | 10 + .../{GombaWS => GombaServ}/Reference.cs | 592 ++++++++---------- .../GombaServ/Reference.svcmap | 32 + .../GombaServ/configuration.svcinfo | 11 + .../GombaServ/configuration91.svcinfo | 310 +++++++++ .../GombaServ/lwpService.wsdl | 75 +++ .../Connected Services/GombaServ/ws.xsd | 70 +++ .../GombaWS/ConnectedService.json | 16 - EgwProxy.Gomba/EgwProxy.Gomba.csproj | 41 +- 16 files changed, 885 insertions(+), 349 deletions(-) create mode 100644 EgwProxy.Gomba/Connected Services/GombaServ/EgwProxy.Gomba.GombaServ.gestWeightOut.datasource create mode 100644 EgwProxy.Gomba/Connected Services/GombaServ/EgwProxy.Gomba.GombaServ.memWeightResponse.datasource create mode 100644 EgwProxy.Gomba/Connected Services/GombaServ/EgwProxy.Gomba.GombaServ.reqWeightListResponse.datasource create mode 100644 EgwProxy.Gomba/Connected Services/GombaServ/EgwProxy.Gomba.GombaServ.reqWeightResponse.datasource rename EgwProxy.Gomba/Connected Services/{GombaWS => GombaServ}/Reference.cs (56%) create mode 100644 EgwProxy.Gomba/Connected Services/GombaServ/Reference.svcmap create mode 100644 EgwProxy.Gomba/Connected Services/GombaServ/configuration.svcinfo create mode 100644 EgwProxy.Gomba/Connected Services/GombaServ/configuration91.svcinfo create mode 100644 EgwProxy.Gomba/Connected Services/GombaServ/lwpService.wsdl create mode 100644 EgwProxy.Gomba/Connected Services/GombaServ/ws.xsd delete mode 100644 EgwProxy.Gomba/Connected Services/GombaWS/ConnectedService.json diff --git a/EgwProxy.Gomba.Test/App.config b/EgwProxy.Gomba.Test/App.config index b50c74f3..666f864c 100644 --- a/EgwProxy.Gomba.Test/App.config +++ b/EgwProxy.Gomba.Test/App.config @@ -3,4 +3,19 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/EgwProxy.Gomba.Test/EgwProxy.Gomba.Test.csproj b/EgwProxy.Gomba.Test/EgwProxy.Gomba.Test.csproj index 69b14b8a..f60eb4dc 100644 --- a/EgwProxy.Gomba.Test/EgwProxy.Gomba.Test.csproj +++ b/EgwProxy.Gomba.Test/EgwProxy.Gomba.Test.csproj @@ -35,6 +35,7 @@ + diff --git a/EgwProxy.Gomba.Test/Program.cs b/EgwProxy.Gomba.Test/Program.cs index f0233df3..442c8734 100644 --- a/EgwProxy.Gomba.Test/Program.cs +++ b/EgwProxy.Gomba.Test/Program.cs @@ -10,8 +10,22 @@ namespace EgwProxy.Gomba.Test { static void Main(string[] args) { - + string linea = "-----------------------------"; + Console.WriteLine(linea); Console.WriteLine("Test comunicazione Gomba"); + Console.WriteLine(linea); + Console.WriteLine(); + + // init proxy SOAP + GombaServ.lwpServiceClient gombaConn = new GombaServ.lwpServiceClient(); + //GombaServ.lwpServiceClient gombaConn = new GombaServ.lwpServiceClient("lwpServicePortBinding", new System.ServiceModel.EndpointAddress("https://308gomba:8000/ws")); + var results = gombaConn.reqWeightList("ALL", "01/01/2023", "12/09/2023"); + foreach (var item in results) + { + string pesata = $"rm: {item.rm} | DI: {item.dateIn} | DO: {item.dateOut} | BI: {item.balanceIn} | BO: {item.balanceOut} | WI: {item.weightIn} | WO: {item.weightOut} | net: {item.net}"; + Console.WriteLine(pesata); + + } } } } diff --git a/EgwProxy.Gomba/App.config b/EgwProxy.Gomba/App.config index 02418267..bae7545d 100644 --- a/EgwProxy.Gomba/App.config +++ b/EgwProxy.Gomba/App.config @@ -11,4 +11,19 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/EgwProxy.Gomba/Connected Services/GombaServ/EgwProxy.Gomba.GombaServ.gestWeightOut.datasource b/EgwProxy.Gomba/Connected Services/GombaServ/EgwProxy.Gomba.GombaServ.gestWeightOut.datasource new file mode 100644 index 00000000..11614ea2 --- /dev/null +++ b/EgwProxy.Gomba/Connected Services/GombaServ/EgwProxy.Gomba.GombaServ.gestWeightOut.datasource @@ -0,0 +1,10 @@ + + + + EgwProxy.Gomba.GombaServ.gestWeightOut, Connected Services.GombaServ.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + \ No newline at end of file diff --git a/EgwProxy.Gomba/Connected Services/GombaServ/EgwProxy.Gomba.GombaServ.memWeightResponse.datasource b/EgwProxy.Gomba/Connected Services/GombaServ/EgwProxy.Gomba.GombaServ.memWeightResponse.datasource new file mode 100644 index 00000000..4cd0b771 --- /dev/null +++ b/EgwProxy.Gomba/Connected Services/GombaServ/EgwProxy.Gomba.GombaServ.memWeightResponse.datasource @@ -0,0 +1,10 @@ + + + + EgwProxy.Gomba.GombaServ.memWeightResponse, Connected Services.GombaServ.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + \ No newline at end of file diff --git a/EgwProxy.Gomba/Connected Services/GombaServ/EgwProxy.Gomba.GombaServ.reqWeightListResponse.datasource b/EgwProxy.Gomba/Connected Services/GombaServ/EgwProxy.Gomba.GombaServ.reqWeightListResponse.datasource new file mode 100644 index 00000000..6d5160f9 --- /dev/null +++ b/EgwProxy.Gomba/Connected Services/GombaServ/EgwProxy.Gomba.GombaServ.reqWeightListResponse.datasource @@ -0,0 +1,10 @@ + + + + EgwProxy.Gomba.GombaServ.reqWeightListResponse, Connected Services.GombaServ.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + \ No newline at end of file diff --git a/EgwProxy.Gomba/Connected Services/GombaServ/EgwProxy.Gomba.GombaServ.reqWeightResponse.datasource b/EgwProxy.Gomba/Connected Services/GombaServ/EgwProxy.Gomba.GombaServ.reqWeightResponse.datasource new file mode 100644 index 00000000..3377bef1 --- /dev/null +++ b/EgwProxy.Gomba/Connected Services/GombaServ/EgwProxy.Gomba.GombaServ.reqWeightResponse.datasource @@ -0,0 +1,10 @@ + + + + EgwProxy.Gomba.GombaServ.reqWeightResponse, Connected Services.GombaServ.Reference.cs.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null + \ No newline at end of file diff --git a/EgwProxy.Gomba/Connected Services/GombaWS/Reference.cs b/EgwProxy.Gomba/Connected Services/GombaServ/Reference.cs similarity index 56% rename from EgwProxy.Gomba/Connected Services/GombaWS/Reference.cs rename to EgwProxy.Gomba/Connected Services/GombaServ/Reference.cs index 9c1d8f5e..bea423ea 100644 --- a/EgwProxy.Gomba/Connected Services/GombaWS/Reference.cs +++ b/EgwProxy.Gomba/Connected Services/GombaServ/Reference.cs @@ -1,40 +1,55 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. +// Runtime Version:4.0.30319.42000 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ -namespace GombaWS -{ +namespace EgwProxy.Gomba.GombaServ { - [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] - [System.ServiceModel.ServiceContractAttribute(Namespace="http://servicesImpl.webServices.gomba.com/", ConfigurationName="GombaWS.lwpService")] - public interface lwpService - { - - [System.ServiceModel.OperationContractAttribute(Action="http://servicesImpl.webServices.gomba.com/lwpService/reqWeightListRequest", ReplyAction="http://servicesImpl.webServices.gomba.com/lwpService/reqWeightListResponse")] - [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] - System.Threading.Tasks.Task reqWeightListAsync(GombaWS.reqWeightListRequest request); + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ServiceModel.ServiceContractAttribute(Namespace="http://servicesImpl.webServices.gomba.com/", ConfigurationName="GombaServ.lwpService")] + public interface lwpService { + // CODEGEN: Parameter 'return' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action="http://servicesImpl.webServices.gomba.com/lwpService/memWeightRequest", ReplyAction="http://servicesImpl.webServices.gomba.com/lwpService/memWeightResponse")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] - System.Threading.Tasks.Task memWeightAsync(GombaWS.memWeightRequest request); + [return: System.ServiceModel.MessageParameterAttribute(Name="return")] + EgwProxy.Gomba.GombaServ.memWeightResponse memWeight(EgwProxy.Gomba.GombaServ.memWeightRequest request); + [System.ServiceModel.OperationContractAttribute(Action="http://servicesImpl.webServices.gomba.com/lwpService/memWeightRequest", ReplyAction="http://servicesImpl.webServices.gomba.com/lwpService/memWeightResponse")] + System.Threading.Tasks.Task memWeightAsync(EgwProxy.Gomba.GombaServ.memWeightRequest request); + + // CODEGEN: Parameter 'return' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. + [System.ServiceModel.OperationContractAttribute(Action="http://servicesImpl.webServices.gomba.com/lwpService/reqWeightListRequest", ReplyAction="http://servicesImpl.webServices.gomba.com/lwpService/reqWeightListResponse")] + [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] + [return: System.ServiceModel.MessageParameterAttribute(Name="return")] + EgwProxy.Gomba.GombaServ.reqWeightListResponse reqWeightList(EgwProxy.Gomba.GombaServ.reqWeightListRequest request); + + [System.ServiceModel.OperationContractAttribute(Action="http://servicesImpl.webServices.gomba.com/lwpService/reqWeightListRequest", ReplyAction="http://servicesImpl.webServices.gomba.com/lwpService/reqWeightListResponse")] + System.Threading.Tasks.Task reqWeightListAsync(EgwProxy.Gomba.GombaServ.reqWeightListRequest request); + + // CODEGEN: Parameter 'return' requires additional schema information that cannot be captured using the parameter mode. The specific attribute is 'System.Xml.Serialization.XmlElementAttribute'. [System.ServiceModel.OperationContractAttribute(Action="http://servicesImpl.webServices.gomba.com/lwpService/reqWeightRequest", ReplyAction="http://servicesImpl.webServices.gomba.com/lwpService/reqWeightResponse")] [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)] - System.Threading.Tasks.Task reqWeightAsync(GombaWS.reqWeightRequest request); + [return: System.ServiceModel.MessageParameterAttribute(Name="return")] + EgwProxy.Gomba.GombaServ.reqWeightResponse reqWeight(EgwProxy.Gomba.GombaServ.reqWeightRequest request); + + [System.ServiceModel.OperationContractAttribute(Action="http://servicesImpl.webServices.gomba.com/lwpService/reqWeightRequest", ReplyAction="http://servicesImpl.webServices.gomba.com/lwpService/reqWeightResponse")] + System.Threading.Tasks.Task reqWeightAsync(EgwProxy.Gomba.GombaServ.reqWeightRequest request); } /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.3761.0")] + [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://servicesImpl.webServices.gomba.com/")] - public partial class gestWeightOut - { + public partial class gestWeightOut : object, System.ComponentModel.INotifyPropertyChanged { private string balanceInField; @@ -78,343 +93,259 @@ namespace GombaWS /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)] - public string balanceIn - { - get - { + public string balanceIn { + get { return this.balanceInField; } - set - { + set { this.balanceInField = value; + this.RaisePropertyChanged("balanceIn"); } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=1)] - public string balanceOut - { - get - { + public string balanceOut { + get { return this.balanceOutField; } - set - { + set { this.balanceOutField = value; + this.RaisePropertyChanged("balanceOut"); } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=2)] - public string cod1 - { - get - { + public string cod1 { + get { return this.cod1Field; } - set - { + set { this.cod1Field = value; + this.RaisePropertyChanged("cod1"); } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=3)] - public string cod2 - { - get - { + public string cod2 { + get { return this.cod2Field; } - set - { + set { this.cod2Field = value; + this.RaisePropertyChanged("cod2"); } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=4)] - public string cod3 - { - get - { + public string cod3 { + get { return this.cod3Field; } - set - { + set { this.cod3Field = value; + this.RaisePropertyChanged("cod3"); } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=5)] - public string cod4 - { - get - { + public string cod4 { + get { return this.cod4Field; } - set - { + set { this.cod4Field = value; + this.RaisePropertyChanged("cod4"); } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=6)] - public string cod5 - { - get - { + public string cod5 { + get { return this.cod5Field; } - set - { + set { this.cod5Field = value; + this.RaisePropertyChanged("cod5"); } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=7)] - public string cod6 - { - get - { + public string cod6 { + get { return this.cod6Field; } - set - { + set { this.cod6Field = value; + this.RaisePropertyChanged("cod6"); } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=8)] - public System.DateTime dateIn - { - get - { + public System.DateTime dateIn { + get { return this.dateInField; } - set - { + set { this.dateInField = value; + this.RaisePropertyChanged("dateIn"); } } /// [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool dateInSpecified - { - get - { + public bool dateInSpecified { + get { return this.dateInFieldSpecified; } - set - { + set { this.dateInFieldSpecified = value; + this.RaisePropertyChanged("dateInSpecified"); } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=9)] - public System.DateTime dateOut - { - get - { + public System.DateTime dateOut { + get { return this.dateOutField; } - set - { + set { this.dateOutField = value; + this.RaisePropertyChanged("dateOut"); } } /// [System.Xml.Serialization.XmlIgnoreAttribute()] - public bool dateOutSpecified - { - get - { + public bool dateOutSpecified { + get { return this.dateOutFieldSpecified; } - set - { + set { this.dateOutFieldSpecified = value; + this.RaisePropertyChanged("dateOutSpecified"); } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=10)] - public string feedback - { - get - { + public string feedback { + get { return this.feedbackField; } - set - { + set { this.feedbackField = value; + this.RaisePropertyChanged("feedback"); } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=11)] - public string idMemIn - { - get - { + public string idMemIn { + get { return this.idMemInField; } - set - { + set { this.idMemInField = value; + this.RaisePropertyChanged("idMemIn"); } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=12)] - public string idMemOut - { - get - { + public string idMemOut { + get { return this.idMemOutField; } - set - { + set { this.idMemOutField = value; + this.RaisePropertyChanged("idMemOut"); } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=13)] - public string net - { - get - { + public string net { + get { return this.netField; } - set - { + set { this.netField = value; + this.RaisePropertyChanged("net"); } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=14)] - public string notes - { - get - { + public string notes { + get { return this.notesField; } - set - { + set { this.notesField = value; + this.RaisePropertyChanged("notes"); } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=15)] - public string rm - { - get - { + public string rm { + get { return this.rmField; } - set - { + set { this.rmField = value; + this.RaisePropertyChanged("rm"); } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=16)] - public string weightIn - { - get - { + public string weightIn { + get { return this.weightInField; } - set - { + set { this.weightInField = value; + this.RaisePropertyChanged("weightIn"); } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=17)] - public string weightOut - { - get - { + public string weightOut { + get { return this.weightOutField; } - set - { + set { this.weightOutField = value; + this.RaisePropertyChanged("weightOut"); + } + } + + public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged; + + protected void RaisePropertyChanged(string propertyName) { + System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged; + if ((propertyChanged != null)) { + propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName)); } } } [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName="reqWeightList", WrapperNamespace="http://servicesImpl.webServices.gomba.com/", IsWrapped=true)] - public partial class reqWeightListRequest - { - - [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://servicesImpl.webServices.gomba.com/", Order=0)] - [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] - public string type; - - [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://servicesImpl.webServices.gomba.com/", Order=1)] - [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] - public string dateStart; - - [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://servicesImpl.webServices.gomba.com/", Order=2)] - [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] - public string dateEnd; - - public reqWeightListRequest() - { - } - - public reqWeightListRequest(string type, string dateStart, string dateEnd) - { - this.type = type; - this.dateStart = dateStart; - this.dateEnd = dateEnd; - } - } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - [System.ServiceModel.MessageContractAttribute(WrapperName="reqWeightListResponse", WrapperNamespace="http://servicesImpl.webServices.gomba.com/", IsWrapped=true)] - public partial class reqWeightListResponse - { - - [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://servicesImpl.webServices.gomba.com/", Order=0)] - [System.Xml.Serialization.XmlElementAttribute("return", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] - public GombaWS.gestWeightOut[] @return; - - public reqWeightListResponse() - { - } - - public reqWeightListResponse(GombaWS.gestWeightOut[] @return) - { - this.@return = @return; - } - } - - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(WrapperName="memWeight", WrapperNamespace="http://servicesImpl.webServices.gomba.com/", IsWrapped=true)] - public partial class memWeightRequest - { + public partial class memWeightRequest { [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://servicesImpl.webServices.gomba.com/", Order=0)] [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] @@ -448,12 +379,10 @@ namespace GombaWS [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] public string cod6; - public memWeightRequest() - { + public memWeightRequest() { } - public memWeightRequest(string type, string rm, string cod1, string cod2, string cod3, string cod4, string cod5, string cod6) - { + public memWeightRequest(string type, string rm, string cod1, string cod2, string cod3, string cod4, string cod5, string cod6) { this.type = type; this.rm = rm; this.cod1 = cod1; @@ -466,142 +395,139 @@ namespace GombaWS } [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(WrapperName="memWeightResponse", WrapperNamespace="http://servicesImpl.webServices.gomba.com/", IsWrapped=true)] - public partial class memWeightResponse - { + public partial class memWeightResponse { [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://servicesImpl.webServices.gomba.com/", Order=0)] [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] - public GombaWS.gestWeightOut @return; + public EgwProxy.Gomba.GombaServ.gestWeightOut @return; - public memWeightResponse() - { + public memWeightResponse() { } - public memWeightResponse(GombaWS.gestWeightOut @return) - { + public memWeightResponse(EgwProxy.Gomba.GombaServ.gestWeightOut @return) { this.@return = @return; } } [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName="reqWeightList", WrapperNamespace="http://servicesImpl.webServices.gomba.com/", IsWrapped=true)] + public partial class reqWeightListRequest { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://servicesImpl.webServices.gomba.com/", Order=0)] + [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] + public string type; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://servicesImpl.webServices.gomba.com/", Order=1)] + [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] + public string dateStart; + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://servicesImpl.webServices.gomba.com/", Order=2)] + [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] + public string dateEnd; + + public reqWeightListRequest() { + } + + public reqWeightListRequest(string type, string dateStart, string dateEnd) { + this.type = type; + this.dateStart = dateStart; + this.dateEnd = dateEnd; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + [System.ServiceModel.MessageContractAttribute(WrapperName="reqWeightListResponse", WrapperNamespace="http://servicesImpl.webServices.gomba.com/", IsWrapped=true)] + public partial class reqWeightListResponse { + + [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://servicesImpl.webServices.gomba.com/", Order=0)] + [System.Xml.Serialization.XmlElementAttribute("return", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] + public EgwProxy.Gomba.GombaServ.gestWeightOut[] @return; + + public reqWeightListResponse() { + } + + public reqWeightListResponse(EgwProxy.Gomba.GombaServ.gestWeightOut[] @return) { + this.@return = @return; + } + } + + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(WrapperName="reqWeight", WrapperNamespace="http://servicesImpl.webServices.gomba.com/", IsWrapped=true)] - public partial class reqWeightRequest - { + public partial class reqWeightRequest { [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://servicesImpl.webServices.gomba.com/", Order=0)] [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] public string rm; - public reqWeightRequest() - { + public reqWeightRequest() { } - public reqWeightRequest(string rm) - { + public reqWeightRequest(string rm) { this.rm = rm; } } [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(WrapperName="reqWeightResponse", WrapperNamespace="http://servicesImpl.webServices.gomba.com/", IsWrapped=true)] - public partial class reqWeightResponse - { + public partial class reqWeightResponse { [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://servicesImpl.webServices.gomba.com/", Order=0)] [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] - public GombaWS.gestWeightOut @return; + public EgwProxy.Gomba.GombaServ.gestWeightOut @return; - public reqWeightResponse() - { + public reqWeightResponse() { } - public reqWeightResponse(GombaWS.gestWeightOut @return) - { + public reqWeightResponse(EgwProxy.Gomba.GombaServ.gestWeightOut @return) { this.@return = @return; } } - [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] - public interface lwpServiceChannel : GombaWS.lwpService, System.ServiceModel.IClientChannel - { + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public interface lwpServiceChannel : EgwProxy.Gomba.GombaServ.lwpService, System.ServiceModel.IClientChannel { } [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")] - public partial class lwpServiceClient : System.ServiceModel.ClientBase, GombaWS.lwpService - { + [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] + public partial class lwpServiceClient : System.ServiceModel.ClientBase, EgwProxy.Gomba.GombaServ.lwpService { - /// - /// Implement this partial method to configure the service endpoint. - /// - /// The endpoint to configure - /// The client credentials - static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials); - - public lwpServiceClient() : - base(lwpServiceClient.GetDefaultBinding(), lwpServiceClient.GetDefaultEndpointAddress()) - { - this.Endpoint.Name = EndpointConfiguration.lwpServicePort.ToString(); - ConfigureEndpoint(this.Endpoint, this.ClientCredentials); + public lwpServiceClient() { } - public lwpServiceClient(EndpointConfiguration endpointConfiguration) : - base(lwpServiceClient.GetBindingForEndpoint(endpointConfiguration), lwpServiceClient.GetEndpointAddress(endpointConfiguration)) - { - this.Endpoint.Name = endpointConfiguration.ToString(); - ConfigureEndpoint(this.Endpoint, this.ClientCredentials); + public lwpServiceClient(string endpointConfigurationName) : + base(endpointConfigurationName) { } - public lwpServiceClient(EndpointConfiguration endpointConfiguration, string remoteAddress) : - base(lwpServiceClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress)) - { - this.Endpoint.Name = endpointConfiguration.ToString(); - ConfigureEndpoint(this.Endpoint, this.ClientCredentials); + public lwpServiceClient(string endpointConfigurationName, string remoteAddress) : + base(endpointConfigurationName, remoteAddress) { } - public lwpServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : - base(lwpServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) - { - this.Endpoint.Name = endpointConfiguration.ToString(); - ConfigureEndpoint(this.Endpoint, this.ClientCredentials); + public lwpServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : + base(endpointConfigurationName, remoteAddress) { } public lwpServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : - base(binding, remoteAddress) - { + base(binding, remoteAddress) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task GombaWS.lwpService.reqWeightListAsync(GombaWS.reqWeightListRequest request) - { - return base.Channel.reqWeightListAsync(request); + EgwProxy.Gomba.GombaServ.memWeightResponse EgwProxy.Gomba.GombaServ.lwpService.memWeight(EgwProxy.Gomba.GombaServ.memWeightRequest request) { + return base.Channel.memWeight(request); } - public System.Threading.Tasks.Task reqWeightListAsync(string type, string dateStart, string dateEnd) - { - GombaWS.reqWeightListRequest inValue = new GombaWS.reqWeightListRequest(); - inValue.type = type; - inValue.dateStart = dateStart; - inValue.dateEnd = dateEnd; - return ((GombaWS.lwpService)(this)).reqWeightListAsync(inValue); - } - - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task GombaWS.lwpService.memWeightAsync(GombaWS.memWeightRequest request) - { - return base.Channel.memWeightAsync(request); - } - - public System.Threading.Tasks.Task memWeightAsync(string type, string rm, string cod1, string cod2, string cod3, string cod4, string cod5, string cod6) - { - GombaWS.memWeightRequest inValue = new GombaWS.memWeightRequest(); + public EgwProxy.Gomba.GombaServ.gestWeightOut memWeight(string type, string rm, string cod1, string cod2, string cod3, string cod4, string cod5, string cod6) { + EgwProxy.Gomba.GombaServ.memWeightRequest inValue = new EgwProxy.Gomba.GombaServ.memWeightRequest(); inValue.type = type; inValue.rm = rm; inValue.cod1 = cod1; @@ -610,70 +536,76 @@ namespace GombaWS inValue.cod4 = cod4; inValue.cod5 = cod5; inValue.cod6 = cod6; - return ((GombaWS.lwpService)(this)).memWeightAsync(inValue); + EgwProxy.Gomba.GombaServ.memWeightResponse retVal = ((EgwProxy.Gomba.GombaServ.lwpService)(this)).memWeight(inValue); + return retVal.@return; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] - System.Threading.Tasks.Task GombaWS.lwpService.reqWeightAsync(GombaWS.reqWeightRequest request) - { + System.Threading.Tasks.Task EgwProxy.Gomba.GombaServ.lwpService.memWeightAsync(EgwProxy.Gomba.GombaServ.memWeightRequest request) { + return base.Channel.memWeightAsync(request); + } + + public System.Threading.Tasks.Task memWeightAsync(string type, string rm, string cod1, string cod2, string cod3, string cod4, string cod5, string cod6) { + EgwProxy.Gomba.GombaServ.memWeightRequest inValue = new EgwProxy.Gomba.GombaServ.memWeightRequest(); + inValue.type = type; + inValue.rm = rm; + inValue.cod1 = cod1; + inValue.cod2 = cod2; + inValue.cod3 = cod3; + inValue.cod4 = cod4; + inValue.cod5 = cod5; + inValue.cod6 = cod6; + return ((EgwProxy.Gomba.GombaServ.lwpService)(this)).memWeightAsync(inValue); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + EgwProxy.Gomba.GombaServ.reqWeightListResponse EgwProxy.Gomba.GombaServ.lwpService.reqWeightList(EgwProxy.Gomba.GombaServ.reqWeightListRequest request) { + return base.Channel.reqWeightList(request); + } + + public EgwProxy.Gomba.GombaServ.gestWeightOut[] reqWeightList(string type, string dateStart, string dateEnd) { + EgwProxy.Gomba.GombaServ.reqWeightListRequest inValue = new EgwProxy.Gomba.GombaServ.reqWeightListRequest(); + inValue.type = type; + inValue.dateStart = dateStart; + inValue.dateEnd = dateEnd; + EgwProxy.Gomba.GombaServ.reqWeightListResponse retVal = ((EgwProxy.Gomba.GombaServ.lwpService)(this)).reqWeightList(inValue); + return retVal.@return; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task EgwProxy.Gomba.GombaServ.lwpService.reqWeightListAsync(EgwProxy.Gomba.GombaServ.reqWeightListRequest request) { + return base.Channel.reqWeightListAsync(request); + } + + public System.Threading.Tasks.Task reqWeightListAsync(string type, string dateStart, string dateEnd) { + EgwProxy.Gomba.GombaServ.reqWeightListRequest inValue = new EgwProxy.Gomba.GombaServ.reqWeightListRequest(); + inValue.type = type; + inValue.dateStart = dateStart; + inValue.dateEnd = dateEnd; + return ((EgwProxy.Gomba.GombaServ.lwpService)(this)).reqWeightListAsync(inValue); + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + EgwProxy.Gomba.GombaServ.reqWeightResponse EgwProxy.Gomba.GombaServ.lwpService.reqWeight(EgwProxy.Gomba.GombaServ.reqWeightRequest request) { + return base.Channel.reqWeight(request); + } + + public EgwProxy.Gomba.GombaServ.gestWeightOut reqWeight(string rm) { + EgwProxy.Gomba.GombaServ.reqWeightRequest inValue = new EgwProxy.Gomba.GombaServ.reqWeightRequest(); + inValue.rm = rm; + EgwProxy.Gomba.GombaServ.reqWeightResponse retVal = ((EgwProxy.Gomba.GombaServ.lwpService)(this)).reqWeight(inValue); + return retVal.@return; + } + + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] + System.Threading.Tasks.Task EgwProxy.Gomba.GombaServ.lwpService.reqWeightAsync(EgwProxy.Gomba.GombaServ.reqWeightRequest request) { return base.Channel.reqWeightAsync(request); } - public System.Threading.Tasks.Task reqWeightAsync(string rm) - { - GombaWS.reqWeightRequest inValue = new GombaWS.reqWeightRequest(); + public System.Threading.Tasks.Task reqWeightAsync(string rm) { + EgwProxy.Gomba.GombaServ.reqWeightRequest inValue = new EgwProxy.Gomba.GombaServ.reqWeightRequest(); inValue.rm = rm; - return ((GombaWS.lwpService)(this)).reqWeightAsync(inValue); - } - - public virtual System.Threading.Tasks.Task OpenAsync() - { - return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginOpen(null, null), new System.Action(((System.ServiceModel.ICommunicationObject)(this)).EndOpen)); - } - - public virtual System.Threading.Tasks.Task CloseAsync() - { - return System.Threading.Tasks.Task.Factory.FromAsync(((System.ServiceModel.ICommunicationObject)(this)).BeginClose(null, null), new System.Action(((System.ServiceModel.ICommunicationObject)(this)).EndClose)); - } - - private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration) - { - if ((endpointConfiguration == EndpointConfiguration.lwpServicePort)) - { - System.ServiceModel.BasicHttpBinding result = new System.ServiceModel.BasicHttpBinding(); - result.MaxBufferSize = int.MaxValue; - result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max; - result.MaxReceivedMessageSize = int.MaxValue; - result.AllowCookies = true; - result.Security.Mode = System.ServiceModel.BasicHttpSecurityMode.Transport; - return result; - } - throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration)); - } - - private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration) - { - if ((endpointConfiguration == EndpointConfiguration.lwpServicePort)) - { - return new System.ServiceModel.EndpointAddress("https://308gomba:8000/ws"); - } - throw new System.InvalidOperationException(string.Format("Could not find endpoint with name \'{0}\'.", endpointConfiguration)); - } - - private static System.ServiceModel.Channels.Binding GetDefaultBinding() - { - return lwpServiceClient.GetBindingForEndpoint(EndpointConfiguration.lwpServicePort); - } - - private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() - { - return lwpServiceClient.GetEndpointAddress(EndpointConfiguration.lwpServicePort); - } - - public enum EndpointConfiguration - { - - lwpServicePort, + return ((EgwProxy.Gomba.GombaServ.lwpService)(this)).reqWeightAsync(inValue); } } } diff --git a/EgwProxy.Gomba/Connected Services/GombaServ/Reference.svcmap b/EgwProxy.Gomba/Connected Services/GombaServ/Reference.svcmap new file mode 100644 index 00000000..1c1042d3 --- /dev/null +++ b/EgwProxy.Gomba/Connected Services/GombaServ/Reference.svcmap @@ -0,0 +1,32 @@ + + + + false + true + true + + false + false + false + + + true + Auto + true + true + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/EgwProxy.Gomba/Connected Services/GombaServ/configuration.svcinfo b/EgwProxy.Gomba/Connected Services/GombaServ/configuration.svcinfo new file mode 100644 index 00000000..8a2ab729 --- /dev/null +++ b/EgwProxy.Gomba/Connected Services/GombaServ/configuration.svcinfo @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/EgwProxy.Gomba/Connected Services/GombaServ/configuration91.svcinfo b/EgwProxy.Gomba/Connected Services/GombaServ/configuration91.svcinfo new file mode 100644 index 00000000..d326a0a2 --- /dev/null +++ b/EgwProxy.Gomba/Connected Services/GombaServ/configuration91.svcinfo @@ -0,0 +1,310 @@ + + + + + + + lwpServicePortBinding + + + + + + + + + + + + + + + + + + + + + StrongWildcard + + + + + + 65536 + + + + + + + + + System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + System.Text.UTF8Encoding + + + Buffered + + + + + + Text + + + System.ServiceModel.Configuration.BasicHttpSecurityElement + + + Transport + + + System.ServiceModel.Configuration.HttpTransportSecurityElement + + + None + + + None + + + System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement + + + Never + + + TransportSelected + + + (Collection) + + + + + + System.ServiceModel.Configuration.BasicHttpMessageSecurityElement + + + UserName + + + Default + + + + + + + lwpServicePortBinding1 + + + + + + + + + + + + + + + + + + + + + StrongWildcard + + + + + + 65536 + + + + + + + + + System.ServiceModel.Configuration.XmlDictionaryReaderQuotasElement + + + 0 + + + 0 + + + 0 + + + 0 + + + 0 + + + System.Text.UTF8Encoding + + + Buffered + + + + + + Text + + + System.ServiceModel.Configuration.BasicHttpSecurityElement + + + None + + + System.ServiceModel.Configuration.HttpTransportSecurityElement + + + None + + + None + + + System.Security.Authentication.ExtendedProtection.Configuration.ExtendedProtectionPolicyElement + + + Never + + + TransportSelected + + + (Collection) + + + + + + System.ServiceModel.Configuration.BasicHttpMessageSecurityElement + + + UserName + + + Default + + + + + + + + + https://308gomba:8000/ws + + + + + + basicHttpBinding + + + lwpServicePortBinding + + + GombaServ.lwpService + + + System.ServiceModel.Configuration.AddressHeaderCollectionElement + + + <Header /> + + + System.ServiceModel.Configuration.IdentityElement + + + System.ServiceModel.Configuration.UserPrincipalNameElement + + + + + + System.ServiceModel.Configuration.ServicePrincipalNameElement + + + + + + System.ServiceModel.Configuration.DnsElement + + + + + + System.ServiceModel.Configuration.RsaElement + + + + + + System.ServiceModel.Configuration.CertificateElement + + + + + + System.ServiceModel.Configuration.CertificateReferenceElement + + + My + + + LocalMachine + + + FindBySubjectDistinguishedName + + + + + + False + + + lwpServicePort + + + + + + + + + + + \ No newline at end of file diff --git a/EgwProxy.Gomba/Connected Services/GombaServ/lwpService.wsdl b/EgwProxy.Gomba/Connected Services/GombaServ/lwpService.wsdl new file mode 100644 index 00000000..faad4b6a --- /dev/null +++ b/EgwProxy.Gomba/Connected Services/GombaServ/lwpService.wsdl @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/EgwProxy.Gomba/Connected Services/GombaServ/ws.xsd b/EgwProxy.Gomba/Connected Services/GombaServ/ws.xsd new file mode 100644 index 00000000..b79d666e --- /dev/null +++ b/EgwProxy.Gomba/Connected Services/GombaServ/ws.xsd @@ -0,0 +1,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/EgwProxy.Gomba/Connected Services/GombaWS/ConnectedService.json b/EgwProxy.Gomba/Connected Services/GombaWS/ConnectedService.json deleted file mode 100644 index 1da09ad8..00000000 --- a/EgwProxy.Gomba/Connected Services/GombaWS/ConnectedService.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "ExtendedData": { - "inputs": [ - "https://308gomba:8000/ws?wsdl" - ], - "collectionTypes": [ - "System.Array", - "System.Collections.Generic.Dictionary`2" - ], - "namespaceMappings": [ - "*, GombaWS" - ], - "targetFramework": "4.6.2", - "typeReuseMode": "All" - } -} \ No newline at end of file diff --git a/EgwProxy.Gomba/EgwProxy.Gomba.csproj b/EgwProxy.Gomba/EgwProxy.Gomba.csproj index 330d8380..becf07c2 100644 --- a/EgwProxy.Gomba/EgwProxy.Gomba.csproj +++ b/EgwProxy.Gomba/EgwProxy.Gomba.csproj @@ -67,13 +67,50 @@ - + + True + True + Reference.svcmap + - + + Reference.svcmap + + + Reference.svcmap + + + Reference.svcmap + + + Reference.svcmap + + + + Designer + + + + + + + + + + + + + + + + WCF Proxy Generator + Reference.cs + + \ No newline at end of file From 38b9ed255dbc714d542b304af435dd611cefd939 Mon Sep 17 00:00:00 2001 From: "Samuele E. Locatelli" Date: Tue, 12 Sep 2023 11:13:42 +0200 Subject: [PATCH 2/2] Update test GOMBA --- EgwProxy.Gomba.Test/Program.cs | 34 +++++++++++++++++++++++++++++----- 1 file changed, 29 insertions(+), 5 deletions(-) diff --git a/EgwProxy.Gomba.Test/Program.cs b/EgwProxy.Gomba.Test/Program.cs index 442c8734..42a8472b 100644 --- a/EgwProxy.Gomba.Test/Program.cs +++ b/EgwProxy.Gomba.Test/Program.cs @@ -1,6 +1,7 @@ using System; using System.Collections.Generic; using System.Linq; +using System.Net; using System.Text; using System.Threading.Tasks; @@ -10,21 +11,44 @@ namespace EgwProxy.Gomba.Test { static void Main(string[] args) { + // gestire da conf se saltare certificato + ServicePointManager.ServerCertificateValidationCallback = delegate { return true; }; + string linea = "-----------------------------"; Console.WriteLine(linea); Console.WriteLine("Test comunicazione Gomba"); Console.WriteLine(linea); Console.WriteLine(); + string escimi = "N"; + // init proxy SOAP GombaServ.lwpServiceClient gombaConn = new GombaServ.lwpServiceClient(); //GombaServ.lwpServiceClient gombaConn = new GombaServ.lwpServiceClient("lwpServicePortBinding", new System.ServiceModel.EndpointAddress("https://308gomba:8000/ws")); - var results = gombaConn.reqWeightList("ALL", "01/01/2023", "12/09/2023"); - foreach (var item in results) - { - string pesata = $"rm: {item.rm} | DI: {item.dateIn} | DO: {item.dateOut} | BI: {item.balanceIn} | BO: {item.balanceOut} | WI: {item.weightIn} | WO: {item.weightOut} | net: {item.net}"; - Console.WriteLine(pesata); + int idxReq = 5; + Console.WriteLine("Vuoi inviare richiesta peso? (S/N)"); + escimi = Console.ReadLine().ToUpper(); + if (escimi == "S") + { + gombaConn.memWeight("IN", $"{idxReq}", $"ODL000000{idxReq}", "INGRESSO", "15000", "PROVA", "2023.09.12", "11.00"); + gombaConn.memWeight("OUT", $"{idxReq}", $"ODL000000{idxReq}", "USCITA", "25000", "PROVA", "2023.09.12", "12.00"); + } + // lettura + Console.WriteLine("Pronto per ciclo lettura, premere un tasto per continuare"); + Console.ReadLine(); + escimi = "N"; + while (escimi != "S") + { + var results = gombaConn.reqWeightList("ALL", "01/01/2023", "12/09/2023"); + foreach (var item in results) + { + string pesata = $"rm: {item.rm} | DI: {item.dateIn} | DO: {item.dateOut} | BI: {item.balanceIn} | BO: {item.balanceOut} | WI: {item.weightIn} | WO: {item.weightOut} | net: {item.net} | MI: {item.idMemIn} | MO: {item.idMemOut} | Feed: {item.feedback} | note: {item.notes}"; + Console.WriteLine(pesata); + } + + Console.WriteLine("Vuoi uscrire? (S/N)"); + escimi = Console.ReadLine().ToUpper(); } } }