//------------------------------------------------------------------------------ // // 此代码由工具生成。 // 运行时版本:4.0.30319.42000 // // 对此文件的更改可能会导致不正确的行为,并且如果 // 重新生成代码,这些更改将会丢失。 // //------------------------------------------------------------------------------ // // 此源代码是由 Microsoft.VSDesigner 4.0.30319.42000 版自动生成。 // #pragma warning disable 1591 namespace DataexchangeServer.WebReferenceLD { using System.Diagnostics; using System; using System.Xml.Serialization; using System.ComponentModel; using System.Web.Services.Protocols; using System.Web.Services; /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="UserServiceImplPortBinding", Namespace="K3cloudInterface")] [System.Xml.Serialization.XmlIncludeAttribute(typeof(BodyResponse))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(Body))] public partial class UserServiceImplService : System.Web.Services.Protocols.SoapHttpClientProtocol { private System.Threading.SendOrPostCallback BodyOperationCompleted; private bool useDefaultCredentialsSetExplicitly; /// public UserServiceImplService() { this.Url = global::DataexchangeServer.Properties.Settings.Default.DataexchangeServer_WebReferenceLD_UserServiceImplService; 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 BodyCompletedEventHandler BodyCompleted; /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="K3cloudInterface", ResponseNamespace="K3cloudInterface", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] [return: System.Xml.Serialization.XmlElementAttribute("return", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] public resp Body([System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] user arg0) { object[] results = this.Invoke("Body", new object[] { arg0}); return ((resp)(results[0])); } /// public void BodyAsync(user arg0) { this.BodyAsync(arg0, null); } /// public void BodyAsync(user arg0, object userState) { if ((this.BodyOperationCompleted == null)) { this.BodyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnBodyOperationCompleted); } this.InvokeAsync("Body", new object[] { arg0}, this.BodyOperationCompleted, userState); } private void OnBodyOperationCompleted(object arg) { if ((this.BodyCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.BodyCompleted(this, new BodyCompletedEventArgs(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.Xml", "4.8.4084.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="K3cloudInterface")] public partial class user { private string categoryField; private string dataField; private string opField; /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] public string category { get { return this.categoryField; } set { this.categoryField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] public string data { get { return this.dataField; } set { this.dataField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] public string op { get { return this.opField; } set { this.opField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.4084.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="K3cloudInterface")] public partial class BodyResponse { private resp returnField; /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] public resp @return { get { return this.returnField; } set { this.returnField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.4084.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="K3cloudInterface")] public partial class resp { private int codeField; private object dataField; private string msgField; /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] public int code { get { return this.codeField; } set { this.codeField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] public object data { get { return this.dataField; } set { this.dataField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] public string msg { get { return this.msgField; } set { this.msgField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.8.4084.0")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="K3cloudInterface")] public partial class Body { private user arg0Field; /// [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)] public user arg0 { get { return this.arg0Field; } set { this.arg0Field = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")] public delegate void BodyCompletedEventHandler(object sender, BodyCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.4084.0")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class BodyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal BodyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public resp Result { get { this.RaiseExceptionIfNecessary(); return ((resp)(this.results[0])); } } } } #pragma warning restore 1591