kingno
2025-03-31 f5bd202c943df54f160d3ae2dd44e8ef150a8b7a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//
//     对此文件的更改可能导致不正确的行为,并在以下条件下丢失:
//     代码重新生成。
// </auto-generated>
//------------------------------------------------------------------------------
 
namespace MESService
{
    
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
    [System.ServiceModel.ServiceContractAttribute(ConfigurationName="MESService.WSTESTSoap")]
    public interface WSTESTSoap
    {
        
        // CODEGEN: 正在生成消息协定,因为命名空间 http://tempuri.org/ 的元素名称 json 未标记为 nillable
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/aoidataX2966aoi3Insert", ReplyAction="*")]
        MESService.aoidataX2966aoi3InsertResponse aoidataX2966aoi3Insert(MESService.aoidataX2966aoi3InsertRequest request);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/aoidataX2966aoi3Insert", ReplyAction="*")]
        System.Threading.Tasks.Task<MESService.aoidataX2966aoi3InsertResponse> aoidataX2966aoi3InsertAsync(MESService.aoidataX2966aoi3InsertRequest request);
        
        // CODEGEN: 正在生成消息协定,因为命名空间 http://tempuri.org/ 的元素名称 json 未标记为 nillable
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/checkaoidataX2966aoi3Insert", ReplyAction="*")]
        MESService.checkaoidataX2966aoi3InsertResponse checkaoidataX2966aoi3Insert(MESService.checkaoidataX2966aoi3InsertRequest request);
        
        [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/checkaoidataX2966aoi3Insert", ReplyAction="*")]
        System.Threading.Tasks.Task<MESService.checkaoidataX2966aoi3InsertResponse> checkaoidataX2966aoi3InsertAsync(MESService.checkaoidataX2966aoi3InsertRequest request);
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class aoidataX2966aoi3InsertRequest
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="aoidataX2966aoi3Insert", Namespace="http://tempuri.org/", Order=0)]
        public MESService.aoidataX2966aoi3InsertRequestBody Body;
        
        public aoidataX2966aoi3InsertRequest()
        {
        }
        
        public aoidataX2966aoi3InsertRequest(MESService.aoidataX2966aoi3InsertRequestBody Body)
        {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
    public partial class aoidataX2966aoi3InsertRequestBody
    {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string json;
        
        public aoidataX2966aoi3InsertRequestBody()
        {
        }
        
        public aoidataX2966aoi3InsertRequestBody(string json)
        {
            this.json = json;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class aoidataX2966aoi3InsertResponse
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="aoidataX2966aoi3InsertResponse", Namespace="http://tempuri.org/", Order=0)]
        public MESService.aoidataX2966aoi3InsertResponseBody Body;
        
        public aoidataX2966aoi3InsertResponse()
        {
        }
        
        public aoidataX2966aoi3InsertResponse(MESService.aoidataX2966aoi3InsertResponseBody Body)
        {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
    public partial class aoidataX2966aoi3InsertResponseBody
    {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string aoidataX2966aoi3InsertResult;
        
        public aoidataX2966aoi3InsertResponseBody()
        {
        }
        
        public aoidataX2966aoi3InsertResponseBody(string aoidataX2966aoi3InsertResult)
        {
            this.aoidataX2966aoi3InsertResult = aoidataX2966aoi3InsertResult;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class checkaoidataX2966aoi3InsertRequest
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="checkaoidataX2966aoi3Insert", Namespace="http://tempuri.org/", Order=0)]
        public MESService.checkaoidataX2966aoi3InsertRequestBody Body;
        
        public checkaoidataX2966aoi3InsertRequest()
        {
        }
        
        public checkaoidataX2966aoi3InsertRequest(MESService.checkaoidataX2966aoi3InsertRequestBody Body)
        {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
    public partial class checkaoidataX2966aoi3InsertRequestBody
    {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string json;
        
        public checkaoidataX2966aoi3InsertRequestBody()
        {
        }
        
        public checkaoidataX2966aoi3InsertRequestBody(string json)
        {
            this.json = json;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class checkaoidataX2966aoi3InsertResponse
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="checkaoidataX2966aoi3InsertResponse", Namespace="http://tempuri.org/", Order=0)]
        public MESService.checkaoidataX2966aoi3InsertResponseBody Body;
        
        public checkaoidataX2966aoi3InsertResponse()
        {
        }
        
        public checkaoidataX2966aoi3InsertResponse(MESService.checkaoidataX2966aoi3InsertResponseBody Body)
        {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")]
    public partial class checkaoidataX2966aoi3InsertResponseBody
    {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string checkaoidataX2966aoi3InsertResult;
        
        public checkaoidataX2966aoi3InsertResponseBody()
        {
        }
        
        public checkaoidataX2966aoi3InsertResponseBody(string checkaoidataX2966aoi3InsertResult)
        {
            this.checkaoidataX2966aoi3InsertResult = checkaoidataX2966aoi3InsertResult;
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
    public interface WSTESTSoapChannel : MESService.WSTESTSoap, System.ServiceModel.IClientChannel
    {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3")]
    public partial class WSTESTSoapClient : System.ServiceModel.ClientBase<MESService.WSTESTSoap>, MESService.WSTESTSoap
    {
        
        /// <summary>
        /// 实现此分部方法,配置服务终结点。
        /// </summary>
        /// <param name="serviceEndpoint">要配置的终结点</param>
        /// <param name="clientCredentials">客户端凭据</param>
        static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials);
        
        public WSTESTSoapClient(EndpointConfiguration endpointConfiguration) : 
                base(WSTESTSoapClient.GetBindingForEndpoint(endpointConfiguration), WSTESTSoapClient.GetEndpointAddress(endpointConfiguration))
        {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public WSTESTSoapClient(EndpointConfiguration endpointConfiguration, string remoteAddress) : 
                base(WSTESTSoapClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
        {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public WSTESTSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(WSTESTSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
        {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public WSTESTSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress)
        {
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        MESService.aoidataX2966aoi3InsertResponse MESService.WSTESTSoap.aoidataX2966aoi3Insert(MESService.aoidataX2966aoi3InsertRequest request)
        {
            return base.Channel.aoidataX2966aoi3Insert(request);
        }
        
        public string aoidataX2966aoi3Insert(string json)
        {
            MESService.aoidataX2966aoi3InsertRequest inValue = new MESService.aoidataX2966aoi3InsertRequest();
            inValue.Body = new MESService.aoidataX2966aoi3InsertRequestBody();
            inValue.Body.json = json;
            MESService.aoidataX2966aoi3InsertResponse retVal = ((MESService.WSTESTSoap)(this)).aoidataX2966aoi3Insert(inValue);
            return retVal.Body.aoidataX2966aoi3InsertResult;
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.Threading.Tasks.Task<MESService.aoidataX2966aoi3InsertResponse> MESService.WSTESTSoap.aoidataX2966aoi3InsertAsync(MESService.aoidataX2966aoi3InsertRequest request)
        {
            return base.Channel.aoidataX2966aoi3InsertAsync(request);
        }
        
        public System.Threading.Tasks.Task<MESService.aoidataX2966aoi3InsertResponse> aoidataX2966aoi3InsertAsync(string json)
        {
            MESService.aoidataX2966aoi3InsertRequest inValue = new MESService.aoidataX2966aoi3InsertRequest();
            inValue.Body = new MESService.aoidataX2966aoi3InsertRequestBody();
            inValue.Body.json = json;
            return ((MESService.WSTESTSoap)(this)).aoidataX2966aoi3InsertAsync(inValue);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        MESService.checkaoidataX2966aoi3InsertResponse MESService.WSTESTSoap.checkaoidataX2966aoi3Insert(MESService.checkaoidataX2966aoi3InsertRequest request)
        {
            return base.Channel.checkaoidataX2966aoi3Insert(request);
        }
        
        public string checkaoidataX2966aoi3Insert(string json)
        {
            MESService.checkaoidataX2966aoi3InsertRequest inValue = new MESService.checkaoidataX2966aoi3InsertRequest();
            inValue.Body = new MESService.checkaoidataX2966aoi3InsertRequestBody();
            inValue.Body.json = json;
            MESService.checkaoidataX2966aoi3InsertResponse retVal = ((MESService.WSTESTSoap)(this)).checkaoidataX2966aoi3Insert(inValue);
            return retVal.Body.checkaoidataX2966aoi3InsertResult;
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.Threading.Tasks.Task<MESService.checkaoidataX2966aoi3InsertResponse> MESService.WSTESTSoap.checkaoidataX2966aoi3InsertAsync(MESService.checkaoidataX2966aoi3InsertRequest request)
        {
            return base.Channel.checkaoidataX2966aoi3InsertAsync(request);
        }
        
        public System.Threading.Tasks.Task<MESService.checkaoidataX2966aoi3InsertResponse> checkaoidataX2966aoi3InsertAsync(string json)
        {
            MESService.checkaoidataX2966aoi3InsertRequest inValue = new MESService.checkaoidataX2966aoi3InsertRequest();
            inValue.Body = new MESService.checkaoidataX2966aoi3InsertRequestBody();
            inValue.Body.json = json;
            return ((MESService.WSTESTSoap)(this)).checkaoidataX2966aoi3InsertAsync(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.IAsyncResult>(((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.IAsyncResult>(((System.ServiceModel.ICommunicationObject)(this)).EndClose));
        }
        
        private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
        {
            if ((endpointConfiguration == EndpointConfiguration.WSTESTSoap))
            {
                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;
                result.Security.Mode = System.ServiceModel.BasicHttpSecurityMode.None;
                return result;
            }
            if ((endpointConfiguration == EndpointConfiguration.WSTESTSoap12))
            {
                System.ServiceModel.Channels.CustomBinding result = new System.ServiceModel.Channels.CustomBinding();
                System.ServiceModel.Channels.TextMessageEncodingBindingElement textBindingElement = new System.ServiceModel.Channels.TextMessageEncodingBindingElement();
                textBindingElement.MessageVersion = System.ServiceModel.Channels.MessageVersion.CreateVersion(System.ServiceModel.EnvelopeVersion.Soap12, System.ServiceModel.Channels.AddressingVersion.None);
                result.Elements.Add(textBindingElement);
                System.ServiceModel.Channels.HttpsTransportBindingElement httpsBindingElement = new System.ServiceModel.Channels.HttpsTransportBindingElement();
                httpsBindingElement.AllowCookies = true;
                httpsBindingElement.MaxBufferSize = int.MaxValue;
                httpsBindingElement.MaxReceivedMessageSize = int.MaxValue;
                result.Elements.Add(httpsBindingElement);
                return result;
            }
            throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
        }
        
        private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
        {
            if ((endpointConfiguration == EndpointConfiguration.WSTESTSoap))
            {
                return new System.ServiceModel.EndpointAddress("https://localhost:44311/WSTEST.asmx");
            }
            if ((endpointConfiguration == EndpointConfiguration.WSTESTSoap12))
            {
                return new System.ServiceModel.EndpointAddress("https://localhost:44311/WSTEST.asmx");
            }
            throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
        }
        
        public enum EndpointConfiguration
        {
            
            WSTESTSoap,
            
            WSTESTSoap12,
        }
    }
}