//------------------------------------------------------------------------------ // // 此代码由工具生成。 // 运行时版本:4.0.30319.2012 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // //------------------------------------------------------------------------------ // // 此源代码是由 Microsoft.VSDesigner 4.0.30319.2012 版自动生成。 // #pragma warning disable 1591 namespace Test.RpcWeb1 { using System; using System.Web.Services; using System.Diagnostics; using System.Web.Services.Protocols; using System.ComponentModel; using System.Xml.Serialization; /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="ServiceSoap", Namespace="http://tempuri.org/")] public partial class Service : System.Web.Services.Protocols.SoapHttpClientProtocol { private System.Threading.SendOrPostCallback InsertFeedPlanOperationCompleted; private System.Threading.SendOrPostCallback InsertGCBOperationCompleted; private System.Threading.SendOrPostCallback InsertBCBOperationCompleted; private System.Threading.SendOrPostCallback InsertGoodsSaleOperationCompleted; private System.Threading.SendOrPostCallback UpdateGoodsSaleOperationCompleted; private bool useDefaultCredentialsSetExplicitly; /// public Service() { this.Url = global::Test.Properties.Settings.Default.Test_RpcWeb1_Service; if ((this.IsLocalFileSystemWebService(this.Url) == true)) { this.UseDefaultCredentials = true; this.useDefaultCredentialsSetExplicitly = false; } else { this.useDefaultCredentialsSetExplicitly = true; } } public new string Url { get { return base.Url; } set { if ((((this.IsLocalFileSystemWebService(base.Url) == true) && (this.useDefaultCredentialsSetExplicitly == false)) && (this.IsLocalFileSystemWebService(value) == false))) { base.UseDefaultCredentials = false; } base.Url = value; } } public new bool UseDefaultCredentials { get { return base.UseDefaultCredentials; } set { base.UseDefaultCredentials = value; this.useDefaultCredentialsSetExplicitly = true; } } /// public event InsertFeedPlanCompletedEventHandler InsertFeedPlanCompleted; /// public event InsertGCBCompletedEventHandler InsertGCBCompleted; /// public event InsertBCBCompletedEventHandler InsertBCBCompleted; /// public event InsertGoodsSaleCompletedEventHandler InsertGoodsSaleCompleted; /// public event UpdateGoodsSaleCompletedEventHandler UpdateGoodsSaleCompleted; /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/InsertFeedPlan", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public string InsertFeedPlan(string data) { object[] results = this.Invoke("InsertFeedPlan", new object[] { data}); return ((string)(results[0])); } /// public void InsertFeedPlanAsync(string data) { this.InsertFeedPlanAsync(data, null); } /// public void InsertFeedPlanAsync(string data, object userState) { if ((this.InsertFeedPlanOperationCompleted == null)) { this.InsertFeedPlanOperationCompleted = new System.Threading.SendOrPostCallback(this.OnInsertFeedPlanOperationCompleted); } this.InvokeAsync("InsertFeedPlan", new object[] { data}, this.InsertFeedPlanOperationCompleted, userState); } private void OnInsertFeedPlanOperationCompleted(object arg) { if ((this.InsertFeedPlanCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.InsertFeedPlanCompleted(this, new InsertFeedPlanCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/InsertGCB", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public string InsertGCB(string data) { object[] results = this.Invoke("InsertGCB", new object[] { data}); return ((string)(results[0])); } /// public void InsertGCBAsync(string data) { this.InsertGCBAsync(data, null); } /// public void InsertGCBAsync(string data, object userState) { if ((this.InsertGCBOperationCompleted == null)) { this.InsertGCBOperationCompleted = new System.Threading.SendOrPostCallback(this.OnInsertGCBOperationCompleted); } this.InvokeAsync("InsertGCB", new object[] { data}, this.InsertGCBOperationCompleted, userState); } private void OnInsertGCBOperationCompleted(object arg) { if ((this.InsertGCBCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.InsertGCBCompleted(this, new InsertGCBCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/InsertBCB", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public string InsertBCB(string data) { object[] results = this.Invoke("InsertBCB", new object[] { data}); return ((string)(results[0])); } /// public void InsertBCBAsync(string data) { this.InsertBCBAsync(data, null); } /// public void InsertBCBAsync(string data, object userState) { if ((this.InsertBCBOperationCompleted == null)) { this.InsertBCBOperationCompleted = new System.Threading.SendOrPostCallback(this.OnInsertBCBOperationCompleted); } this.InvokeAsync("InsertBCB", new object[] { data}, this.InsertBCBOperationCompleted, userState); } private void OnInsertBCBOperationCompleted(object arg) { if ((this.InsertBCBCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.InsertBCBCompleted(this, new InsertBCBCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/InsertGoodsSale", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public string InsertGoodsSale(string data) { object[] results = this.Invoke("InsertGoodsSale", new object[] { data}); return ((string)(results[0])); } /// public void InsertGoodsSaleAsync(string data) { this.InsertGoodsSaleAsync(data, null); } /// public void InsertGoodsSaleAsync(string data, object userState) { if ((this.InsertGoodsSaleOperationCompleted == null)) { this.InsertGoodsSaleOperationCompleted = new System.Threading.SendOrPostCallback(this.OnInsertGoodsSaleOperationCompleted); } this.InvokeAsync("InsertGoodsSale", new object[] { data}, this.InsertGoodsSaleOperationCompleted, userState); } private void OnInsertGoodsSaleOperationCompleted(object arg) { if ((this.InsertGoodsSaleCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.InsertGoodsSaleCompleted(this, new InsertGoodsSaleCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/UpdateGoodsSale", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public string UpdateGoodsSale(string data) { object[] results = this.Invoke("UpdateGoodsSale", new object[] { data}); return ((string)(results[0])); } /// public void UpdateGoodsSaleAsync(string data) { this.UpdateGoodsSaleAsync(data, null); } /// public void UpdateGoodsSaleAsync(string data, object userState) { if ((this.UpdateGoodsSaleOperationCompleted == null)) { this.UpdateGoodsSaleOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateGoodsSaleOperationCompleted); } this.InvokeAsync("UpdateGoodsSale", new object[] { data}, this.UpdateGoodsSaleOperationCompleted, userState); } private void OnUpdateGoodsSaleOperationCompleted(object arg) { if ((this.UpdateGoodsSaleCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.UpdateGoodsSaleCompleted(this, new UpdateGoodsSaleCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// public new void CancelAsync(object userState) { base.CancelAsync(userState); } private bool IsLocalFileSystemWebService(string url) { if (((url == null) || (url == string.Empty))) { return false; } System.Uri wsUri = new System.Uri(url); if (((wsUri.Port >= 1024) && (string.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) == 0))) { return true; } return false; } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")] public delegate void InsertFeedPlanCompletedEventHandler(object sender, InsertFeedPlanCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class InsertFeedPlanCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal InsertFeedPlanCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public string Result { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")] public delegate void InsertGCBCompletedEventHandler(object sender, InsertGCBCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class InsertGCBCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal InsertGCBCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public string Result { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")] public delegate void InsertBCBCompletedEventHandler(object sender, InsertBCBCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class InsertBCBCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal InsertBCBCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public string Result { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")] public delegate void InsertGoodsSaleCompletedEventHandler(object sender, InsertGoodsSaleCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class InsertGoodsSaleCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal InsertGoodsSaleCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public string Result { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")] public delegate void UpdateGoodsSaleCompletedEventHandler(object sender, UpdateGoodsSaleCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class UpdateGoodsSaleCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal UpdateGoodsSaleCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public string Result { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } } } #pragma warning restore 1591