//------------------------------------------------------------------------------
|
// <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,
|
}
|
}
|
}
|