⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 reference.cs

📁 使用C#语言开发的远程监控管理平台;使用soaphead对webservice进行加密的实例
💻 CS
📖 第 1 页 / 共 5 页
字号:
//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.1.4322.573
//
//     Changes to this file may cause incorrect behavior and will be lost if 
//     the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------

// 
// 此源代码是由 Microsoft.VSDesigner 1.1.4322.573 版自动生成。
// 
namespace IssueVision.localhost {
    using System.Diagnostics;
    using System.Xml.Serialization;
    using System;
    using System.Web.Services.Protocols;
    using System.ComponentModel;
    using System.Web.Services;
    using System.Data;
    using System.Xml;
    using System.Runtime.Serialization;
    
    
    /// <remarks/>
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="IssueVisionServicesSoap", Namespace="http://tempuri.org/IssueVision.Web/IssueVisionServices")]
    public class IssueVisionServices : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        public CredentialSoapHeader CredentialSoapHeaderValue;
        
        /// <remarks/>
        public IssueVisionServices() {
            this.Url = "http://192.168.10.145/IssueVisionWebCS/IssueVisionServices.asmx";
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapHeaderAttribute("CredentialSoapHeaderValue")]
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/IssueVision.Web/IssueVisionServices/GetLookupTables", RequestNamespace="http://tempuri.org/IssueVision.Web/IssueVisionServices", ResponseNamespace="http://tempuri.org/IssueVision.Web/IssueVisionServices", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public IVDataSet GetLookupTables() {
            object[] results = this.Invoke("GetLookupTables", new object[0]);
            return ((IVDataSet)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginGetLookupTables(System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("GetLookupTables", new object[0], callback, asyncState);
        }
        
        /// <remarks/>
        public IVDataSet EndGetLookupTables(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((IVDataSet)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapHeaderAttribute("CredentialSoapHeaderValue")]
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/IssueVision.Web/IssueVisionServices/SendReceiveIssues", RequestNamespace="http://tempuri.org/IssueVision.Web/IssueVisionServices", ResponseNamespace="http://tempuri.org/IssueVision.Web/IssueVisionServices", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public IVDataSet SendReceiveIssues(System.Data.DataSet changedIssues, System.DateTime lastAccessed) {
            object[] results = this.Invoke("SendReceiveIssues", new object[] {
                        changedIssues,
                        lastAccessed});
            return ((IVDataSet)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginSendReceiveIssues(System.Data.DataSet changedIssues, System.DateTime lastAccessed, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("SendReceiveIssues", new object[] {
                        changedIssues,
                        lastAccessed}, callback, asyncState);
        }
        
        /// <remarks/>
        public IVDataSet EndSendReceiveIssues(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((IVDataSet)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapHeaderAttribute("CredentialSoapHeaderValue")]
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/IssueVision.Web/IssueVisionServices/Authenticate", RequestNamespace="http://tempuri.org/IssueVision.Web/IssueVisionServices", ResponseNamespace="http://tempuri.org/IssueVision.Web/IssueVisionServices", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void Authenticate() {
            this.Invoke("Authenticate", new object[0]);
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginAuthenticate(System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("Authenticate", new object[0], callback, asyncState);
        }
        
        /// <remarks/>
        public void EndAuthenticate(System.IAsyncResult asyncResult) {
            this.EndInvoke(asyncResult);
        }
    }
    
    /// <remarks/>
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://tempuri.org/IssueVision.Web/IssueVisionServices")]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="http://tempuri.org/IssueVision.Web/IssueVisionServices", IsNullable=false)]
    public class CredentialSoapHeader : System.Web.Services.Protocols.SoapHeader {
        
        /// <remarks/>
        public string Username;
        
        /// <remarks/>
        public string Password;
    }
    
    [Serializable()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Diagnostics.DebuggerStepThrough()]
    [System.ComponentModel.ToolboxItem(true)]
    public class IVDataSet : DataSet {
        
        private IssueHistoryDataTable tableIssueHistory;
        
        private IssuesDataTable tableIssues;
        
        private ConflictsDataTable tableConflicts;
        
        private IssueTypesDataTable tableIssueTypes;
        
        private StaffersDataTable tableStaffers;
        
        public IVDataSet() {
            this.InitClass();
            System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            this.Tables.CollectionChanged += schemaChangedHandler;
            this.Relations.CollectionChanged += schemaChangedHandler;
        }
        
        protected IVDataSet(SerializationInfo info, StreamingContext context) {
            string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
            if ((strSchema != null)) {
                DataSet ds = new DataSet();
                ds.ReadXmlSchema(new XmlTextReader(new System.IO.StringReader(strSchema)));
                if ((ds.Tables["IssueHistory"] != null)) {
                    this.Tables.Add(new IssueHistoryDataTable(ds.Tables["IssueHistory"]));
                }
                if ((ds.Tables["Issues"] != null)) {
                    this.Tables.Add(new IssuesDataTable(ds.Tables["Issues"]));
                }
                if ((ds.Tables["Conflicts"] != null)) {
                    this.Tables.Add(new ConflictsDataTable(ds.Tables["Conflicts"]));
                }
                if ((ds.Tables["IssueTypes"] != null)) {
                    this.Tables.Add(new IssueTypesDataTable(ds.Tables["IssueTypes"]));
                }
                if ((ds.Tables["Staffers"] != null)) {
                    this.Tables.Add(new StaffersDataTable(ds.Tables["Staffers"]));
                }
                this.DataSetName = ds.DataSetName;
                this.Prefix = ds.Prefix;
                this.Namespace = ds.Namespace;
                this.Locale = ds.Locale;
                this.CaseSensitive = ds.CaseSensitive;
                this.EnforceConstraints = ds.EnforceConstraints;
                this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
                this.InitVars();
            }
            else {
                this.InitClass();
            }
            this.GetSerializationData(info, context);
            System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
            this.Tables.CollectionChanged += schemaChangedHandler;
            this.Relations.CollectionChanged += schemaChangedHandler;
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public IssueHistoryDataTable IssueHistory {
            get {
                return this.tableIssueHistory;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public IssuesDataTable Issues {
            get {
                return this.tableIssues;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public ConflictsDataTable Conflicts {
            get {
                return this.tableConflicts;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public IssueTypesDataTable IssueTypes {
            get {
                return this.tableIssueTypes;
            }
        }
        
        [System.ComponentModel.Browsable(false)]
        [System.ComponentModel.DesignerSerializationVisibilityAttribute(System.ComponentModel.DesignerSerializationVisibility.Content)]
        public StaffersDataTable Staffers {
            get {
                return this.tableStaffers;
            }
        }
        
        public override DataSet Clone() {
            IVDataSet cln = ((IVDataSet)(base.Clone()));
            cln.InitVars();
            return cln;
        }
        
        protected override bool ShouldSerializeTables() {
            return false;
        }
        
        protected override bool ShouldSerializeRelations() {
            return false;
        }
        
        protected override void ReadXmlSerializable(XmlReader reader) {
            this.Reset();
            DataSet ds = new DataSet();
            ds.ReadXml(reader);
            if ((ds.Tables["IssueHistory"] != null)) {
                this.Tables.Add(new IssueHistoryDataTable(ds.Tables["IssueHistory"]));
            }
            if ((ds.Tables["Issues"] != null)) {
                this.Tables.Add(new IssuesDataTable(ds.Tables["Issues"]));
            }
            if ((ds.Tables["Conflicts"] != null)) {
                this.Tables.Add(new ConflictsDataTable(ds.Tables["Conflicts"]));
            }
            if ((ds.Tables["IssueTypes"] != null)) {
                this.Tables.Add(new IssueTypesDataTable(ds.Tables["IssueTypes"]));
            }
            if ((ds.Tables["Staffers"] != null)) {
                this.Tables.Add(new StaffersDataTable(ds.Tables["Staffers"]));
            }
            this.DataSetName = ds.DataSetName;
            this.Prefix = ds.Prefix;
            this.Namespace = ds.Namespace;
            this.Locale = ds.Locale;
            this.CaseSensitive = ds.CaseSensitive;
            this.EnforceConstraints = ds.EnforceConstraints;
            this.Merge(ds, false, System.Data.MissingSchemaAction.Add);
            this.InitVars();
        }
        
        protected override System.Xml.Schema.XmlSchema GetSchemaSerializable() {
            System.IO.MemoryStream stream = new System.IO.MemoryStream();
            this.WriteXmlSchema(new XmlTextWriter(stream, null));
            stream.Position = 0;
            return System.Xml.Schema.XmlSchema.Read(new XmlTextReader(stream), null);
        }
        
        internal void InitVars() {
            this.tableIssueHistory = ((IssueHistoryDataTable)(this.Tables["IssueHistory"]));
            if ((this.tableIssueHistory != null)) {
                this.tableIssueHistory.InitVars();
            }
            this.tableIssues = ((IssuesDataTable)(this.Tables["Issues"]));
            if ((this.tableIssues != null)) {
                this.tableIssues.InitVars();
            }
            this.tableConflicts = ((ConflictsDataTable)(this.Tables["Conflicts"]));
            if ((this.tableConflicts != null)) {
                this.tableConflicts.InitVars();
            }
            this.tableIssueTypes = ((IssueTypesDataTable)(this.Tables["IssueTypes"]));
            if ((this.tableIssueTypes != null)) {
                this.tableIssueTypes.InitVars();
            }
            this.tableStaffers = ((StaffersDataTable)(this.Tables["Staffers"]));
            if ((this.tableStaffers != null)) {
                this.tableStaffers.InitVars();
            }
        }
        
        private void InitClass() {
            this.DataSetName = "IVDataSet";
            this.Prefix = "";
            this.Namespace = "http://www.tempuri.org/IVDataSet.xsd";
            this.Locale = new System.Globalization.CultureInfo("en-US");
            this.CaseSensitive = false;
            this.EnforceConstraints = true;
            this.tableIssueHistory = new IssueHistoryDataTable();
            this.Tables.Add(this.tableIssueHistory);
            this.tableIssues = new IssuesDataTable();
            this.Tables.Add(this.tableIssues);
            this.tableConflicts = new ConflictsDataTable();
            this.Tables.Add(this.tableConflicts);
            this.tableIssueTypes = new IssueTypesDataTable();
            this.Tables.Add(this.tableIssueTypes);
            this.tableStaffers = new StaffersDataTable();
            this.Tables.Add(this.tableStaffers);
        }
        
        private bool ShouldSerializeIssueHistory() {
            return false;
        }
        
        private bool ShouldSerializeIssues() {
            return false;
        }
        
        private bool ShouldSerializeConflicts() {
            return false;
        }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -