From 1483d0e74b4dde9eb22e022276390bfa1f24495b Mon Sep 17 00:00:00 2001 From: hudong <Administrator@PC-20250329JZUF> Date: 星期五, 30 五月 2025 08:58:53 +0800 Subject: [PATCH] wsdl文件替换 大屏接口开发 --- api/ZSCM_WC.cs | 279 +++++++++++++++++++++++++------------------------------ 1 files changed, 125 insertions(+), 154 deletions(-) diff --git a/api/ZSCM_WC.cs b/api/ZSCM_WC.cs index 3a8e47b..84fbc0a 100644 --- a/api/ZSCM_WC.cs +++ b/api/ZSCM_WC.cs @@ -8,179 +8,150 @@ // </auto-generated> //------------------------------------------------------------------------------ +using System; +using System.ComponentModel; +using System.Diagnostics; +using System.Web.Services; +using System.Web.Services.Protocols; +using System.Xml.Serialization; + // // 姝ゆ簮浠g爜鐢�wsdl 鑷姩鐢熸垚, Version=4.8.3928.0銆� // -namespace WHTest -{ - using System; - using System.Web.Services; - using System.Diagnostics; - using System.Web.Services.Protocols; - using System.Xml.Serialization; - using System.ComponentModel; - using HH.WCS.Mobox3.pinggao.util; +/// <remarks/> +// CODEGEN: 鏈鐞嗗懡鍚嶇┖闂粹�http://schemas.xmlsoap.org/ws/2004/09/policy鈥濅腑鐨勫彲閫�WSDL 鎵╁睍鍏冪礌鈥淧olicy鈥濄� +[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Web.Services.WebServiceBindingAttribute(Name="binding", Namespace="urn:sap-com:document:sap:soap:functions:mc-style")] +public partial class ZSCM_WC : System.Web.Services.Protocols.SoapHttpClientProtocol { + + private System.Threading.SendOrPostCallback ZscmWcOperationCompleted; + /// <remarks/> - // CODEGEN: 鏈鐞嗗懡鍚嶇┖闂粹�http://schemas.xmlsoap.org/ws/2004/09/policy鈥濅腑鐨勫彲閫�WSDL 鎵╁睍鍏冪礌鈥淧olicy鈥濄� - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "binding", Namespace = "urn:sap-com:document:sap:soap:functions:mc-style")] - public partial class ZSCM_WC : System.Web.Services.Protocols.SoapHttpClientProtocol - { - - private System.Threading.SendOrPostCallback ZscmWcOperationCompleted; - - /// <remarks/> - public ZSCM_WC() - { - // this.Url = "http://ceerptest.cee.com.cn:8000/sap/bc/srt/rfc/sap/zscm_wc/110/zscm_wc/binding"; - this.Url = "http://10.89.33.217:8000/sap/bc/srt/rfc/sap/zscm_wc/110/zscm_wc/binding"; - - + public ZSCM_WC() { + this.Url = "http://10.89.33.201:8001/sap/bc/srt/rfc/sap/zscm_wc/800/zscm_wc/binding"; + } + + /// <remarks/> + public event ZscmWcCompletedEventHandler ZscmWcCompleted; + + /// <remarks/> + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)] + [return: System.Xml.Serialization.XmlElementAttribute("ZscmWcResponse", Namespace="urn:sap-com:document:sap:soap:functions:mc-style")] + public ZscmWcResponse ZscmWc([System.Xml.Serialization.XmlElementAttribute("ZscmWc", Namespace="urn:sap-com:document:sap:soap:functions:mc-style")] ZscmWc ZscmWc1) { + object[] results = this.Invoke("ZscmWc", new object[] { + ZscmWc1}); + return ((ZscmWcResponse)(results[0])); + } + + /// <remarks/> + public System.IAsyncResult BeginZscmWc(ZscmWc ZscmWc1, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("ZscmWc", new object[] { + ZscmWc1}, callback, asyncState); + } + + /// <remarks/> + public ZscmWcResponse EndZscmWc(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ZscmWcResponse)(results[0])); + } + + /// <remarks/> + public void ZscmWcAsync(ZscmWc ZscmWc1) { + this.ZscmWcAsync(ZscmWc1, null); + } + + /// <remarks/> + public void ZscmWcAsync(ZscmWc ZscmWc1, object userState) { + if ((this.ZscmWcOperationCompleted == null)) { + this.ZscmWcOperationCompleted = new System.Threading.SendOrPostCallback(this.OnZscmWcOperationCompleted); } - - /// <remarks/> - public event ZscmWcCompletedEventHandler ZscmWcCompleted; - - /// <remarks/> - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Bare)] - [return: System.Xml.Serialization.XmlElementAttribute("ZscmWcResponse", Namespace = "urn:sap-com:document:sap:soap:functions:mc-style")] - public ZscmWcResponse ZscmWc([System.Xml.Serialization.XmlElementAttribute("ZscmWc", Namespace = "urn:sap-com:document:sap:soap:functions:mc-style")] ZscmWc ZscmWc1) - { - object[] results = this.Invoke("ZscmWc", new object[] { - ZscmWc1}); - return ((ZscmWcResponse)(results[0])); - } - - /// <remarks/> - public System.IAsyncResult BeginZscmWc(ZscmWc ZscmWc1, System.AsyncCallback callback, object asyncState) - { - return this.BeginInvoke("ZscmWc", new object[] { - ZscmWc1}, callback, asyncState); - } - - /// <remarks/> - public ZscmWcResponse EndZscmWc(System.IAsyncResult asyncResult) - { - object[] results = this.EndInvoke(asyncResult); - return ((ZscmWcResponse)(results[0])); - } - - /// <remarks/> - public void ZscmWcAsync(ZscmWc ZscmWc1) - { - this.ZscmWcAsync(ZscmWc1, null); - } - - /// <remarks/> - public void ZscmWcAsync(ZscmWc ZscmWc1, object userState) - { - if ((this.ZscmWcOperationCompleted == null)) - { - this.ZscmWcOperationCompleted = new System.Threading.SendOrPostCallback(this.OnZscmWcOperationCompleted); - } - this.InvokeAsync("ZscmWc", new object[] { - ZscmWc1}, this.ZscmWcOperationCompleted, userState); - } - - private void OnZscmWcOperationCompleted(object arg) - { - if ((this.ZscmWcCompleted != null)) - { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.ZscmWcCompleted(this, new ZscmWcCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// <remarks/> - public new void CancelAsync(object userState) - { - base.CancelAsync(userState); + this.InvokeAsync("ZscmWc", new object[] { + ZscmWc1}, this.ZscmWcOperationCompleted, userState); + } + + private void OnZscmWcOperationCompleted(object arg) { + if ((this.ZscmWcCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.ZscmWcCompleted(this, new ZscmWcCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// <remarks/> - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "urn:sap-com:document:sap:soap:functions:mc-style")] - public partial class ZscmWc - { + public new void CancelAsync(object userState) { + base.CancelAsync(userState); + } +} - private string inputField; - - /// <remarks/> - [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] - public string Input - { - get - { - return this.inputField; - } - set - { - this.inputField = value; - } +/// <remarks/> +[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:sap-com:document:sap:soap:functions:mc-style")] +public partial class ZscmWc { + + private string inputField; + + /// <remarks/> + [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] + public string Input { + get { + return this.inputField; + } + set { + this.inputField = value; } } +} +/// <remarks/> +[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")] +[System.SerializableAttribute()] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:sap-com:document:sap:soap:functions:mc-style")] +public partial class ZscmWcResponse { + + private string outputField; + /// <remarks/> - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")] - [System.SerializableAttribute()] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "urn:sap-com:document:sap:soap:functions:mc-style")] - public partial class ZscmWcResponse - { - - private string outputField; - - /// <remarks/> - [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] - public string Output - { - get - { - return this.outputField; - } - set - { - this.outputField = value; - } + [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] + public string Output { + get { + return this.outputField; + } + set { + this.outputField = value; } } +} +/// <remarks/> +[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")] +public delegate void ZscmWcCompletedEventHandler(object sender, ZscmWcCompletedEventArgs e); + +/// <remarks/> +[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")] +[System.Diagnostics.DebuggerStepThroughAttribute()] +[System.ComponentModel.DesignerCategoryAttribute("code")] +public partial class ZscmWcCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal ZscmWcCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + /// <remarks/> - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")] - public delegate void ZscmWcCompletedEventHandler(object sender, ZscmWcCompletedEventArgs e); - - /// <remarks/> - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class ZscmWcCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - - private object[] results; - - internal ZscmWcCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { - this.results = results; - } - - /// <remarks/> - public ZscmWcResponse Result - { - get - { - this.RaiseExceptionIfNecessary(); - return ((ZscmWcResponse)(this.results[0])); - } + public ZscmWcResponse Result { + get { + this.RaiseExceptionIfNecessary(); + return ((ZscmWcResponse)(this.results[0])); } } } -- Gitblit v1.9.1