//------------------------------------------------------------------------------ // // 此代码由工具生成。 // // 对此文件的更改可能导致不正确的行为,并在以下条件下丢失: // 代码重新生成。 // //------------------------------------------------------------------------------ namespace ErpWebService { [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ServiceModel.ServiceContractAttribute(ConfigurationName="ErpWebService.Service_EQPSoap")] public interface Service_EQPSoap { [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/sbcljl", ReplyAction="*")] System.Threading.Tasks.Task sbcljlAsync(ErpWebService.sbcljlRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/ReportToSCE", ReplyAction="*")] System.Threading.Tasks.Task ReportToSCEAsync(ErpWebService.ReportToSCERequest request); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/getInfoByWheel", ReplyAction="*")] System.Threading.Tasks.Task getInfoByWheelAsync(ErpWebService.getInfoByWheelRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/updWheelInOut", ReplyAction="*")] System.Threading.Tasks.Task updWheelInOutAsync(ErpWebService.updWheelInOutRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/getOptWheelList", ReplyAction="*")] System.Threading.Tasks.Task getOptWheelListAsync(ErpWebService.getOptWheelListRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/getCertificateDoc", ReplyAction="*")] System.Threading.Tasks.Task getCertificateDocAsync(ErpWebService.getCertificateDocRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/VerifyWheelSet", ReplyAction="*")] System.Threading.Tasks.Task VerifyWheelSetAsync(ErpWebService.VerifyWheelSetRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/getMeasureList", ReplyAction="*")] System.Threading.Tasks.Task getMeasureListAsync(ErpWebService.getMeasureListRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/getInfoByBearing", ReplyAction="*")] System.Threading.Tasks.Task getInfoByBearingAsync(ErpWebService.getInfoByBearingRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/getInfoByJournal", ReplyAction="*")] System.Threading.Tasks.Task getInfoByJournalAsync(ErpWebService.getInfoByJournalRequest request); [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/WheelsetMatch", ReplyAction="*")] System.Threading.Tasks.Task WheelsetMatchAsync(ErpWebService.WheelsetMatchRequest request); } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class sbcljlRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="sbcljl", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.sbcljlRequestBody Body; public sbcljlRequest() { } public sbcljlRequest(ErpWebService.sbcljlRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class sbcljlRequestBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string ls_sbbh; [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)] public string ls_sbip; [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)] public string ls_cllx; [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=3)] public string ls_barcode; [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=4)] public string ls_ldh; [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=5)] public string s_zt; public sbcljlRequestBody() { } public sbcljlRequestBody(string ls_sbbh, string ls_sbip, string ls_cllx, string ls_barcode, string ls_ldh, string s_zt) { this.ls_sbbh = ls_sbbh; this.ls_sbip = ls_sbip; this.ls_cllx = ls_cllx; this.ls_barcode = ls_barcode; this.ls_ldh = ls_ldh; this.s_zt = s_zt; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class sbcljlResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="sbcljlResponse", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.sbcljlResponseBody Body; public sbcljlResponse() { } public sbcljlResponse(ErpWebService.sbcljlResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class sbcljlResponseBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string sbcljlResult; [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)] public string errMsg; public sbcljlResponseBody() { } public sbcljlResponseBody(string sbcljlResult, string errMsg) { this.sbcljlResult = sbcljlResult; this.errMsg = errMsg; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class ReportToSCERequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="ReportToSCE", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.ReportToSCERequestBody Body; public ReportToSCERequest() { } public ReportToSCERequest(ErpWebService.ReportToSCERequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class ReportToSCERequestBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string s_eqptno; [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)] public string s_source; public ReportToSCERequestBody() { } public ReportToSCERequestBody(string s_eqptno, string s_source) { this.s_eqptno = s_eqptno; this.s_source = s_source; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class ReportToSCEResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="ReportToSCEResponse", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.ReportToSCEResponseBody Body; public ReportToSCEResponse() { } public ReportToSCEResponse(ErpWebService.ReportToSCEResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class ReportToSCEResponseBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string ReportToSCEResult; public ReportToSCEResponseBody() { } public ReportToSCEResponseBody(string ReportToSCEResult) { this.ReportToSCEResult = ReportToSCEResult; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class getInfoByWheelRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="getInfoByWheel", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.getInfoByWheelRequestBody Body; public getInfoByWheelRequest() { } public getInfoByWheelRequest(ErpWebService.getInfoByWheelRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class getInfoByWheelRequestBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string s_barcode; public getInfoByWheelRequestBody() { } public getInfoByWheelRequestBody(string s_barcode) { this.s_barcode = s_barcode; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class getInfoByWheelResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="getInfoByWheelResponse", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.getInfoByWheelResponseBody Body; public getInfoByWheelResponse() { } public getInfoByWheelResponse(ErpWebService.getInfoByWheelResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class getInfoByWheelResponseBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string getInfoByWheelResult; public getInfoByWheelResponseBody() { } public getInfoByWheelResponseBody(string getInfoByWheelResult) { this.getInfoByWheelResult = getInfoByWheelResult; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class updWheelInOutRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="updWheelInOut", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.updWheelInOutRequestBody Body; public updWheelInOutRequest() { } public updWheelInOutRequest(ErpWebService.updWheelInOutRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class updWheelInOutRequestBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string s_barcode; [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)] public string s_InOut; [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)] public string wareHouseLocation; public updWheelInOutRequestBody() { } public updWheelInOutRequestBody(string s_barcode, string s_InOut, string wareHouseLocation) { this.s_barcode = s_barcode; this.s_InOut = s_InOut; this.wareHouseLocation = wareHouseLocation; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class updWheelInOutResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="updWheelInOutResponse", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.updWheelInOutResponseBody Body; public updWheelInOutResponse() { } public updWheelInOutResponse(ErpWebService.updWheelInOutResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class updWheelInOutResponseBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string updWheelInOutResult; public updWheelInOutResponseBody() { } public updWheelInOutResponseBody(string updWheelInOutResult) { this.updWheelInOutResult = updWheelInOutResult; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class getOptWheelListRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="getOptWheelList", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.getOptWheelListRequestBody Body; public getOptWheelListRequest() { } public getOptWheelListRequest(ErpWebService.getOptWheelListRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute()] public partial class getOptWheelListRequestBody { public getOptWheelListRequestBody() { } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class getOptWheelListResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="getOptWheelListResponse", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.getOptWheelListResponseBody Body; public getOptWheelListResponse() { } public getOptWheelListResponse(ErpWebService.getOptWheelListResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class getOptWheelListResponseBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string getOptWheelListResult; public getOptWheelListResponseBody() { } public getOptWheelListResponseBody(string getOptWheelListResult) { this.getOptWheelListResult = getOptWheelListResult; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class getCertificateDocRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="getCertificateDoc", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.getCertificateDocRequestBody Body; public getCertificateDocRequest() { } public getCertificateDocRequest(ErpWebService.getCertificateDocRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class getCertificateDocRequestBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string s_wheel; public getCertificateDocRequestBody() { } public getCertificateDocRequestBody(string s_wheel) { this.s_wheel = s_wheel; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class getCertificateDocResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="getCertificateDocResponse", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.getCertificateDocResponseBody Body; public getCertificateDocResponse() { } public getCertificateDocResponse(ErpWebService.getCertificateDocResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class getCertificateDocResponseBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string getCertificateDocResult; public getCertificateDocResponseBody() { } public getCertificateDocResponseBody(string getCertificateDocResult) { this.getCertificateDocResult = getCertificateDocResult; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class VerifyWheelSetRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="VerifyWheelSet", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.VerifyWheelSetRequestBody Body; public VerifyWheelSetRequest() { } public VerifyWheelSetRequest(ErpWebService.VerifyWheelSetRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class VerifyWheelSetRequestBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string s_barcode; public VerifyWheelSetRequestBody() { } public VerifyWheelSetRequestBody(string s_barcode) { this.s_barcode = s_barcode; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class VerifyWheelSetResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="VerifyWheelSetResponse", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.VerifyWheelSetResponseBody Body; public VerifyWheelSetResponse() { } public VerifyWheelSetResponse(ErpWebService.VerifyWheelSetResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class VerifyWheelSetResponseBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string VerifyWheelSetResult; public VerifyWheelSetResponseBody() { } public VerifyWheelSetResponseBody(string VerifyWheelSetResult) { this.VerifyWheelSetResult = VerifyWheelSetResult; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class getMeasureListRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="getMeasureList", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.getMeasureListRequestBody Body; public getMeasureListRequest() { } public getMeasureListRequest(ErpWebService.getMeasureListRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute()] public partial class getMeasureListRequestBody { public getMeasureListRequestBody() { } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class getMeasureListResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="getMeasureListResponse", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.getMeasureListResponseBody Body; public getMeasureListResponse() { } public getMeasureListResponse(ErpWebService.getMeasureListResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class getMeasureListResponseBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string getMeasureListResult; public getMeasureListResponseBody() { } public getMeasureListResponseBody(string getMeasureListResult) { this.getMeasureListResult = getMeasureListResult; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class getInfoByBearingRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="getInfoByBearing", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.getInfoByBearingRequestBody Body; public getInfoByBearingRequest() { } public getInfoByBearingRequest(ErpWebService.getInfoByBearingRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class getInfoByBearingRequestBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string s_barcode; public getInfoByBearingRequestBody() { } public getInfoByBearingRequestBody(string s_barcode) { this.s_barcode = s_barcode; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class getInfoByBearingResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="getInfoByBearingResponse", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.getInfoByBearingResponseBody Body; public getInfoByBearingResponse() { } public getInfoByBearingResponse(ErpWebService.getInfoByBearingResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class getInfoByBearingResponseBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string getInfoByBearingResult; public getInfoByBearingResponseBody() { } public getInfoByBearingResponseBody(string getInfoByBearingResult) { this.getInfoByBearingResult = getInfoByBearingResult; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class getInfoByJournalRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="getInfoByJournal", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.getInfoByJournalRequestBody Body; public getInfoByJournalRequest() { } public getInfoByJournalRequest(ErpWebService.getInfoByJournalRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class getInfoByJournalRequestBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string s_barcode; public getInfoByJournalRequestBody() { } public getInfoByJournalRequestBody(string s_barcode) { this.s_barcode = s_barcode; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class getInfoByJournalResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="getInfoByJournalResponse", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.getInfoByJournalResponseBody Body; public getInfoByJournalResponse() { } public getInfoByJournalResponse(ErpWebService.getInfoByJournalResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class getInfoByJournalResponseBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string getInfoByJournalResult; public getInfoByJournalResponseBody() { } public getInfoByJournalResponseBody(string getInfoByJournalResult) { this.getInfoByJournalResult = getInfoByJournalResult; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class WheelsetMatchRequest { [System.ServiceModel.MessageBodyMemberAttribute(Name="WheelsetMatch", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.WheelsetMatchRequestBody Body; public WheelsetMatchRequest() { } public WheelsetMatchRequest(ErpWebService.WheelsetMatchRequestBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class WheelsetMatchRequestBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string barcode; [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=1)] public string barcodePart; [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=2)] public string barcodeType; public WheelsetMatchRequestBody() { } public WheelsetMatchRequestBody(string barcode, string barcodePart, string barcodeType) { this.barcode = barcode; this.barcodePart = barcodePart; this.barcodeType = barcodeType; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(IsWrapped=false)] public partial class WheelsetMatchResponse { [System.ServiceModel.MessageBodyMemberAttribute(Name="WheelsetMatchResponse", Namespace="http://tempuri.org/", Order=0)] public ErpWebService.WheelsetMatchResponseBody Body; public WheelsetMatchResponse() { } public WheelsetMatchResponse(ErpWebService.WheelsetMatchResponseBody Body) { this.Body = Body; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.Runtime.Serialization.DataContractAttribute(Namespace="http://tempuri.org/")] public partial class WheelsetMatchResponseBody { [System.Runtime.Serialization.DataMemberAttribute(EmitDefaultValue=false, Order=0)] public string WheelsetMatchResult; public WheelsetMatchResponseBody() { } public WheelsetMatchResponseBody(string WheelsetMatchResult) { this.WheelsetMatchResult = WheelsetMatchResult; } } [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] public interface Service_EQPSoapChannel : ErpWebService.Service_EQPSoap, System.ServiceModel.IClientChannel { } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.Tools.ServiceModel.Svcutil", "2.0.3-preview3.21351.2")] public partial class Service_EQPSoapClient : System.ServiceModel.ClientBase, ErpWebService.Service_EQPSoap { /// /// 实现此分部方法,配置服务终结点。 /// /// 要配置的终结点 /// 客户端凭据 static partial void ConfigureEndpoint(System.ServiceModel.Description.ServiceEndpoint serviceEndpoint, System.ServiceModel.Description.ClientCredentials clientCredentials); public Service_EQPSoapClient(EndpointConfiguration endpointConfiguration) : base(Service_EQPSoapClient.GetBindingForEndpoint(endpointConfiguration), Service_EQPSoapClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); } public Service_EQPSoapClient(EndpointConfiguration endpointConfiguration, string remoteAddress) : base(Service_EQPSoapClient.GetBindingForEndpoint(endpointConfiguration), new System.ServiceModel.EndpointAddress(remoteAddress)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); } public Service_EQPSoapClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(Service_EQPSoapClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); } public Service_EQPSoapClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task ErpWebService.Service_EQPSoap.sbcljlAsync(ErpWebService.sbcljlRequest request) { return base.Channel.sbcljlAsync(request); } public System.Threading.Tasks.Task sbcljlAsync(string ls_sbbh, string ls_sbip, string ls_cllx, string ls_barcode, string ls_ldh, string s_zt) { ErpWebService.sbcljlRequest inValue = new ErpWebService.sbcljlRequest(); inValue.Body = new ErpWebService.sbcljlRequestBody(); inValue.Body.ls_sbbh = ls_sbbh; inValue.Body.ls_sbip = ls_sbip; inValue.Body.ls_cllx = ls_cllx; inValue.Body.ls_barcode = ls_barcode; inValue.Body.ls_ldh = ls_ldh; inValue.Body.s_zt = s_zt; return ((ErpWebService.Service_EQPSoap)(this)).sbcljlAsync(inValue); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task ErpWebService.Service_EQPSoap.ReportToSCEAsync(ErpWebService.ReportToSCERequest request) { return base.Channel.ReportToSCEAsync(request); } public System.Threading.Tasks.Task ReportToSCEAsync(string s_eqptno, string s_source) { ErpWebService.ReportToSCERequest inValue = new ErpWebService.ReportToSCERequest(); inValue.Body = new ErpWebService.ReportToSCERequestBody(); inValue.Body.s_eqptno = s_eqptno; inValue.Body.s_source = s_source; return ((ErpWebService.Service_EQPSoap)(this)).ReportToSCEAsync(inValue); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task ErpWebService.Service_EQPSoap.getInfoByWheelAsync(ErpWebService.getInfoByWheelRequest request) { return base.Channel.getInfoByWheelAsync(request); } public System.Threading.Tasks.Task getInfoByWheelAsync(string s_barcode) { ErpWebService.getInfoByWheelRequest inValue = new ErpWebService.getInfoByWheelRequest(); inValue.Body = new ErpWebService.getInfoByWheelRequestBody(); inValue.Body.s_barcode = s_barcode; return ((ErpWebService.Service_EQPSoap)(this)).getInfoByWheelAsync(inValue); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task ErpWebService.Service_EQPSoap.updWheelInOutAsync(ErpWebService.updWheelInOutRequest request) { return base.Channel.updWheelInOutAsync(request); } public System.Threading.Tasks.Task updWheelInOutAsync(string s_barcode, string s_InOut, string wareHouseLocation) { ErpWebService.updWheelInOutRequest inValue = new ErpWebService.updWheelInOutRequest(); inValue.Body = new ErpWebService.updWheelInOutRequestBody(); inValue.Body.s_barcode = s_barcode; inValue.Body.s_InOut = s_InOut; inValue.Body.wareHouseLocation = wareHouseLocation; return ((ErpWebService.Service_EQPSoap)(this)).updWheelInOutAsync(inValue); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task ErpWebService.Service_EQPSoap.getOptWheelListAsync(ErpWebService.getOptWheelListRequest request) { return base.Channel.getOptWheelListAsync(request); } public System.Threading.Tasks.Task getOptWheelListAsync() { ErpWebService.getOptWheelListRequest inValue = new ErpWebService.getOptWheelListRequest(); inValue.Body = new ErpWebService.getOptWheelListRequestBody(); return ((ErpWebService.Service_EQPSoap)(this)).getOptWheelListAsync(inValue); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task ErpWebService.Service_EQPSoap.getCertificateDocAsync(ErpWebService.getCertificateDocRequest request) { return base.Channel.getCertificateDocAsync(request); } public System.Threading.Tasks.Task getCertificateDocAsync(string s_wheel) { ErpWebService.getCertificateDocRequest inValue = new ErpWebService.getCertificateDocRequest(); inValue.Body = new ErpWebService.getCertificateDocRequestBody(); inValue.Body.s_wheel = s_wheel; return ((ErpWebService.Service_EQPSoap)(this)).getCertificateDocAsync(inValue); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task ErpWebService.Service_EQPSoap.VerifyWheelSetAsync(ErpWebService.VerifyWheelSetRequest request) { return base.Channel.VerifyWheelSetAsync(request); } public System.Threading.Tasks.Task VerifyWheelSetAsync(string s_barcode) { ErpWebService.VerifyWheelSetRequest inValue = new ErpWebService.VerifyWheelSetRequest(); inValue.Body = new ErpWebService.VerifyWheelSetRequestBody(); inValue.Body.s_barcode = s_barcode; return ((ErpWebService.Service_EQPSoap)(this)).VerifyWheelSetAsync(inValue); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task ErpWebService.Service_EQPSoap.getMeasureListAsync(ErpWebService.getMeasureListRequest request) { return base.Channel.getMeasureListAsync(request); } public System.Threading.Tasks.Task getMeasureListAsync() { ErpWebService.getMeasureListRequest inValue = new ErpWebService.getMeasureListRequest(); inValue.Body = new ErpWebService.getMeasureListRequestBody(); return ((ErpWebService.Service_EQPSoap)(this)).getMeasureListAsync(inValue); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task ErpWebService.Service_EQPSoap.getInfoByBearingAsync(ErpWebService.getInfoByBearingRequest request) { return base.Channel.getInfoByBearingAsync(request); } public System.Threading.Tasks.Task getInfoByBearingAsync(string s_barcode) { ErpWebService.getInfoByBearingRequest inValue = new ErpWebService.getInfoByBearingRequest(); inValue.Body = new ErpWebService.getInfoByBearingRequestBody(); inValue.Body.s_barcode = s_barcode; return ((ErpWebService.Service_EQPSoap)(this)).getInfoByBearingAsync(inValue); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task ErpWebService.Service_EQPSoap.getInfoByJournalAsync(ErpWebService.getInfoByJournalRequest request) { return base.Channel.getInfoByJournalAsync(request); } public System.Threading.Tasks.Task getInfoByJournalAsync(string s_barcode) { ErpWebService.getInfoByJournalRequest inValue = new ErpWebService.getInfoByJournalRequest(); inValue.Body = new ErpWebService.getInfoByJournalRequestBody(); inValue.Body.s_barcode = s_barcode; return ((ErpWebService.Service_EQPSoap)(this)).getInfoByJournalAsync(inValue); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] System.Threading.Tasks.Task ErpWebService.Service_EQPSoap.WheelsetMatchAsync(ErpWebService.WheelsetMatchRequest request) { return base.Channel.WheelsetMatchAsync(request); } public System.Threading.Tasks.Task WheelsetMatchAsync(string barcode, string barcodePart, string barcodeType) { ErpWebService.WheelsetMatchRequest inValue = new ErpWebService.WheelsetMatchRequest(); inValue.Body = new ErpWebService.WheelsetMatchRequestBody(); inValue.Body.barcode = barcode; inValue.Body.barcodePart = barcodePart; inValue.Body.barcodeType = barcodeType; return ((ErpWebService.Service_EQPSoap)(this)).WheelsetMatchAsync(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.Service_EQPSoap)) { 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; } if ((endpointConfiguration == EndpointConfiguration.Service_EQPSoap12)) { 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.HttpTransportBindingElement httpBindingElement = new System.ServiceModel.Channels.HttpTransportBindingElement(); httpBindingElement.AllowCookies = true; httpBindingElement.MaxBufferSize = int.MaxValue; httpBindingElement.MaxReceivedMessageSize = int.MaxValue; result.Elements.Add(httpBindingElement); return result; } throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration)); } private static System.ServiceModel.EndpointAddress GetEndpointAddress(EndpointConfiguration endpointConfiguration) { if ((endpointConfiguration == EndpointConfiguration.Service_EQPSoap)) { return new System.ServiceModel.EndpointAddress("http://172.21.1.117/barcode/Webservice/WebService_ZY/Service_EQP.asmx"); } if ((endpointConfiguration == EndpointConfiguration.Service_EQPSoap12)) { return new System.ServiceModel.EndpointAddress("http://172.21.1.117/barcode/Webservice/WebService_ZY/Service_EQP.asmx"); } throw new System.InvalidOperationException(string.Format("找不到名称为“{0}”的终结点。", endpointConfiguration)); } public enum EndpointConfiguration { Service_EQPSoap, Service_EQPSoap12, } } }