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/ZSCM2_SCFLJHW.cs | 123 ++++++++++++++++++++++++---------------- 1 files changed, 73 insertions(+), 50 deletions(-) diff --git a/api/ZSCM2_SCFLJHW.cs b/api/ZSCM2_SCFLJHW.cs index 0ae0afe..1d86fec 100644 --- a/api/ZSCM2_SCFLJHW.cs +++ b/api/ZSCM2_SCFLJHW.cs @@ -25,64 +25,75 @@ [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 ZSCM2_SCFLJHW : System.Web.Services.Protocols.SoapHttpClientProtocol { - +[System.Web.Services.WebServiceBindingAttribute(Name = "binding", Namespace = "urn:sap-com:document:sap:soap:functions:mc-style")] +public partial class ZSCM2_SCFLJHW : System.Web.Services.Protocols.SoapHttpClientProtocol +{ + private System.Threading.SendOrPostCallback ZscmScflJhwOperationCompleted; - + /// <remarks/> - public ZSCM2_SCFLJHW() { - this.Url = "http://10.89.33.217:8000/sap/bc/srt/rfc/sap/zscm2_scfljhw/110/zscm2_scflj" + - "hw/binding"; + public ZSCM2_SCFLJHW() + { + this.Url = "http://10.89.33.201:8001/sap/bc/srt/rfc/sap/zscm2_scfljhw/800/zscm2_scfljh" + + "w/binding"; } - + /// <remarks/> public event ZscmScflJhwCompletedEventHandler ZscmScflJhwCompleted; - + /// <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("ZscmScflJhwResponse", Namespace="urn:sap-com:document:sap:soap:functions:mc-style")] - public ZscmScflJhwResponse ZscmScflJhw([System.Xml.Serialization.XmlElementAttribute("ZscmScflJhw", Namespace="urn:sap-com:document:sap:soap:functions:mc-style")] ZscmScflJhw ZscmScflJhw1) { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Bare)] + [return: System.Xml.Serialization.XmlElementAttribute("ZscmScflJhwResponse", Namespace = "urn:sap-com:document:sap:soap:functions:mc-style")] + public ZscmScflJhwResponse ZscmScflJhw([System.Xml.Serialization.XmlElementAttribute("ZscmScflJhw", Namespace = "urn:sap-com:document:sap:soap:functions:mc-style")] ZscmScflJhw ZscmScflJhw1) + { object[] results = this.Invoke("ZscmScflJhw", new object[] { ZscmScflJhw1}); return ((ZscmScflJhwResponse)(results[0])); } - + /// <remarks/> - public System.IAsyncResult BeginZscmScflJhw(ZscmScflJhw ZscmScflJhw1, System.AsyncCallback callback, object asyncState) { + public System.IAsyncResult BeginZscmScflJhw(ZscmScflJhw ZscmScflJhw1, System.AsyncCallback callback, object asyncState) + { return this.BeginInvoke("ZscmScflJhw", new object[] { ZscmScflJhw1}, callback, asyncState); } - + /// <remarks/> - public ZscmScflJhwResponse EndZscmScflJhw(System.IAsyncResult asyncResult) { + public ZscmScflJhwResponse EndZscmScflJhw(System.IAsyncResult asyncResult) + { object[] results = this.EndInvoke(asyncResult); return ((ZscmScflJhwResponse)(results[0])); } - + /// <remarks/> - public void ZscmScflJhwAsync(ZscmScflJhw ZscmScflJhw1) { + public void ZscmScflJhwAsync(ZscmScflJhw ZscmScflJhw1) + { this.ZscmScflJhwAsync(ZscmScflJhw1, null); } - + /// <remarks/> - public void ZscmScflJhwAsync(ZscmScflJhw ZscmScflJhw1, object userState) { - if ((this.ZscmScflJhwOperationCompleted == null)) { + public void ZscmScflJhwAsync(ZscmScflJhw ZscmScflJhw1, object userState) + { + if ((this.ZscmScflJhwOperationCompleted == null)) + { this.ZscmScflJhwOperationCompleted = new System.Threading.SendOrPostCallback(this.OnZscmScflJhwOperationCompleted); } this.InvokeAsync("ZscmScflJhw", new object[] { ZscmScflJhw1}, this.ZscmScflJhwOperationCompleted, userState); } - - private void OnZscmScflJhwOperationCompleted(object arg) { - if ((this.ZscmScflJhwCompleted != null)) { + + private void OnZscmScflJhwOperationCompleted(object arg) + { + if ((this.ZscmScflJhwCompleted != null)) + { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.ZscmScflJhwCompleted(this, new ZscmScflJhwCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// <remarks/> - public new void CancelAsync(object userState) { + public new void CancelAsync(object userState) + { base.CancelAsync(userState); } } @@ -92,18 +103,22 @@ [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 ZscmScflJhw { - +[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "urn:sap-com:document:sap:soap:functions:mc-style")] +public partial class ZscmScflJhw +{ + private string inputField; - + /// <remarks/> - [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] - public string Input { - get { + [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] + public string Input + { + get + { return this.inputField; } - set { + set + { this.inputField = value; } } @@ -114,18 +129,22 @@ [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 ZscmScflJhwResponse { - +[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true, Namespace = "urn:sap-com:document:sap:soap:functions:mc-style")] +public partial class ZscmScflJhwResponse +{ + private string outputField; - + /// <remarks/> - [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] - public string Output { - get { + [System.Xml.Serialization.XmlElementAttribute(Form = System.Xml.Schema.XmlSchemaForm.Unqualified)] + public string Output + { + get + { return this.outputField; } - set { + set + { this.outputField = value; } } @@ -139,18 +158,22 @@ [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.8.3928.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] -public partial class ZscmScflJhwCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - +public partial class ZscmScflJhwCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs +{ + private object[] results; - - internal ZscmScflJhwCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { + + internal ZscmScflJhwCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) + { this.results = results; } - + /// <remarks/> - public ZscmScflJhwResponse Result { - get { + public ZscmScflJhwResponse Result + { + get + { this.RaiseExceptionIfNecessary(); return ((ZscmScflJhwResponse)(this.results[0])); } -- Gitblit v1.9.1