duyongjia
2024-12-19 fbfbc83d25477cf191e327e034ed996f0a2239d0
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
//------------------------------------------------------------------------------
// <auto-generated>
//     此代码由工具生成。
//
//     对此文件的更改可能导致不正确的行为,并在以下条件下丢失:
//     代码重新生成。
// </auto-generated>
//------------------------------------------------------------------------------
 
namespace LabelServiceReference
{
    
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
    [System.ServiceModel.ServiceContractAttribute(Namespace="http://service.labelmaster.webservice.wms.byd.com/", ConfigurationName="LabelServiceReference.LabelWebService")]
    public interface LabelWebService
    {
        
        // CODEGEN: 正在生成消息协定,因为命名空间  的元素名称 mapInfo 未标记为 nillable
        [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
        LabelServiceReference.getLabelQuantityAndMaterialsResponse getLabelQuantityAndMaterials(LabelServiceReference.getLabelQuantityAndMaterials request);
        
        [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
        System.Threading.Tasks.Task<LabelServiceReference.getLabelQuantityAndMaterialsResponse> getLabelQuantityAndMaterialsAsync(LabelServiceReference.getLabelQuantityAndMaterials request);
        
        // CODEGEN: 正在生成消息协定,因为命名空间  的元素名称 mapInfo 未标记为 nillable
        [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
        LabelServiceReference.getLabelMasterResponse getLabelMaster(LabelServiceReference.getLabelMaster request);
        
        [System.ServiceModel.OperationContractAttribute(Action="", ReplyAction="*")]
        System.Threading.Tasks.Task<LabelServiceReference.getLabelMasterResponse> getLabelMasterAsync(LabelServiceReference.getLabelMaster request);
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class getLabelQuantityAndMaterials
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="getLabelQuantityAndMaterials", Namespace="http://service.labelmaster.webservice.wms.byd.com/", Order=0)]
        public LabelServiceReference.getLabelQuantityAndMaterialsBody Body;
        
        public getLabelQuantityAndMaterials()
        {
        }
        
        public getLabelQuantityAndMaterials(LabelServiceReference.getLabelQuantityAndMaterialsBody Body)
        {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="")]
    public partial class getLabelQuantityAndMaterialsBody
    {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string mapInfo;
        
        public getLabelQuantityAndMaterialsBody()
        {
        }
        
        public getLabelQuantityAndMaterialsBody(string mapInfo)
        {
            this.mapInfo = mapInfo;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class getLabelQuantityAndMaterialsResponse
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="getLabelQuantityAndMaterialsResponse", Namespace="http://service.labelmaster.webservice.wms.byd.com/", Order=0)]
        public LabelServiceReference.getLabelQuantityAndMaterialsResponseBody Body;
        
        public getLabelQuantityAndMaterialsResponse()
        {
        }
        
        public getLabelQuantityAndMaterialsResponse(LabelServiceReference.getLabelQuantityAndMaterialsResponseBody Body)
        {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="")]
    public partial class getLabelQuantityAndMaterialsResponseBody
    {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string @return;
        
        public getLabelQuantityAndMaterialsResponseBody()
        {
        }
        
        public getLabelQuantityAndMaterialsResponseBody(string @return)
        {
            this.@return = @return;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class getLabelMaster
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="getLabelMaster", Namespace="http://service.labelmaster.webservice.wms.byd.com/", Order=0)]
        public LabelServiceReference.getLabelMasterBody Body;
        
        public getLabelMaster()
        {
        }
        
        public getLabelMaster(LabelServiceReference.getLabelMasterBody Body)
        {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="")]
    public partial class getLabelMasterBody
    {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string mapInfo;
        
        public getLabelMasterBody()
        {
        }
        
        public getLabelMasterBody(string mapInfo)
        {
            this.mapInfo = mapInfo;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
    public partial class getLabelMasterResponse
    {
        
        [System.ServiceModel.MessageBodyMemberAttribute(Name="getLabelMasterResponse", Namespace="http://service.labelmaster.webservice.wms.byd.com/", Order=0)]
        public LabelServiceReference.getLabelMasterResponseBody Body;
        
        public getLabelMasterResponse()
        {
        }
        
        public getLabelMasterResponse(LabelServiceReference.getLabelMasterResponseBody Body)
        {
            this.Body = Body;
        }
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
    [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
    [System.Runtime.Serialization.DataContractAttribute(Namespace="")]
    public partial class getLabelMasterResponseBody
    {
        
        [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)]
        public string @return;
        
        public getLabelMasterResponseBody()
        {
        }
        
        public getLabelMasterResponseBody(string @return)
        {
            this.@return = @return;
        }
    }
    
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
    public interface LabelWebServiceChannel : LabelServiceReference.LabelWebService, System.ServiceModel.IClientChannel
    {
    }
    
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.2.0-preview1.23462.5")]
    public partial class LabelWebServiceClient : System.ServiceModel.ClientBase<LabelServiceReference.LabelWebService>, LabelServiceReference.LabelWebService
    {
        
        /// <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 LabelWebServiceClient() : 
                base(LabelWebServiceClient.GetDefaultBinding(), LabelWebServiceClient.GetDefaultEndpointAddress())
        {
            this.Endpoint.Name = EndpointConfiguration.LabelWebServiceImplPort.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public LabelWebServiceClient(EndpointConfiguration endpointConfiguration) : 
                base(LabelWebServiceClient.GetBindingForEndpoint(endpointConfiguration), LabelWebServiceClient.GetEndpointAddress(endpointConfiguration))
        {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public LabelWebServiceClient(EndpointConfiguration endpointConfiguration, string remoteAddress) : 
                base(LabelWebServiceClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress))
        {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public LabelWebServiceClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(LabelWebServiceClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
        {
            this.Endpoint.Name = endpointConfiguration.ToString();
            ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
        }
        
        public LabelWebServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                base(binding, remoteAddress)
        {
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        LabelServiceReference.getLabelQuantityAndMaterialsResponse LabelServiceReference.LabelWebService.getLabelQuantityAndMaterials(LabelServiceReference.getLabelQuantityAndMaterials request)
        {
            return base.Channel.getLabelQuantityAndMaterials(request);
        }
        
        public string getLabelQuantityAndMaterials(string mapInfo)
        {
            LabelServiceReference.getLabelQuantityAndMaterials inValue = new LabelServiceReference.getLabelQuantityAndMaterials();
            inValue.Body = new LabelServiceReference.getLabelQuantityAndMaterialsBody();
            inValue.Body.mapInfo = mapInfo;
            LabelServiceReference.getLabelQuantityAndMaterialsResponse retVal = ((LabelServiceReference.LabelWebService)(this)).getLabelQuantityAndMaterials(inValue);
            return retVal.Body.@return;
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.Threading.Tasks.Task<LabelServiceReference.getLabelQuantityAndMaterialsResponse> LabelServiceReference.LabelWebService.getLabelQuantityAndMaterialsAsync(LabelServiceReference.getLabelQuantityAndMaterials request)
        {
            return base.Channel.getLabelQuantityAndMaterialsAsync(request);
        }
        
        public System.Threading.Tasks.Task<LabelServiceReference.getLabelQuantityAndMaterialsResponse> getLabelQuantityAndMaterialsAsync(string mapInfo)
        {
            LabelServiceReference.getLabelQuantityAndMaterials inValue = new LabelServiceReference.getLabelQuantityAndMaterials();
            inValue.Body = new LabelServiceReference.getLabelQuantityAndMaterialsBody();
            inValue.Body.mapInfo = mapInfo;
            return ((LabelServiceReference.LabelWebService)(this)).getLabelQuantityAndMaterialsAsync(inValue);
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        LabelServiceReference.getLabelMasterResponse LabelServiceReference.LabelWebService.getLabelMaster(LabelServiceReference.getLabelMaster request)
        {
            return base.Channel.getLabelMaster(request);
        }
        
        public string getLabelMaster(string mapInfo)
        {
            LabelServiceReference.getLabelMaster inValue = new LabelServiceReference.getLabelMaster();
            inValue.Body = new LabelServiceReference.getLabelMasterBody();
            inValue.Body.mapInfo = mapInfo;
            LabelServiceReference.getLabelMasterResponse retVal = ((LabelServiceReference.LabelWebService)(this)).getLabelMaster(inValue);
            return retVal.Body.@return;
        }
        
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        System.Threading.Tasks.Task<LabelServiceReference.getLabelMasterResponse> LabelServiceReference.LabelWebService.getLabelMasterAsync(LabelServiceReference.getLabelMaster request)
        {
            return base.Channel.getLabelMasterAsync(request);
        }
        
        public System.Threading.Tasks.Task<LabelServiceReference.getLabelMasterResponse> getLabelMasterAsync(string mapInfo)
        {
            LabelServiceReference.getLabelMaster inValue = new LabelServiceReference.getLabelMaster();
            inValue.Body = new LabelServiceReference.getLabelMasterBody();
            inValue.Body.mapInfo = mapInfo;
            return ((LabelServiceReference.LabelWebService)(this)).getLabelMasterAsync(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));
        }
        
        private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration)
        {
            if ((endpointConfiguration == EndpointConfiguration.LabelWebServiceImplPort))
            {
                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;
                return result;
            }
            throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
        }
        
        private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration)
        {
            if ((endpointConfiguration == EndpointConfiguration.LabelWebServiceImplPort))
            {
                return new System.ServiceModel.EndpointAddress("http://10.8.3.60:9091/wms-webservice/ws/service/label");
            }
            throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration));
        }
        
        private static System.ServiceModel.Channels.Binding GetDefaultBinding()
        {
            return LabelWebServiceClient.GetBindingForEndpoint(EndpointConfiguration.LabelWebServiceImplPort);
        }
        
        private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
        {
            return LabelWebServiceClient.GetEndpointAddress(EndpointConfiguration.LabelWebServiceImplPort);
        }
        
        public enum EndpointConfiguration
        {
            
            LabelWebServiceImplPort,
        }
    }
}