//------------------------------------------------------------------------------
// <auto-generated>
//     このコードはツールによって生成されました。
//     ランタイム バージョン:2.0.50727.3603
//
//     このファイルへの変更は、以下の状況下で不正な動作の原因になったり、
//     コードが再生成されるときに損失したりします。
// </auto-generated>
//------------------------------------------------------------------------------

// 
// このソース コードは Microsoft.VSDesigner、バージョン 2.0.50727.3603 によって自動生成されました。
// 
#pragma warning disable 1591

namespace MyKarte.Service.WebReference {
    using System.Diagnostics;
    using System.Web.Services;
    using System.ComponentModel;
    using System.Web.Services.Protocols;
    using System;
    using System.Xml.Serialization;
    
    using System.Net;
    using System.IO;
    using System.Xml;
    using System.Text.RegularExpressions;
    using Microsoft.Web.Services3;
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="AttachmentServiceSoap11Binding", Namespace="http://gw.mykarte.org")]
    public partial class AttachmentService : WebServicesClientProtocol {
        
        private System.Threading.SendOrPostCallback storeOperationCompleted;
        
        private System.Threading.SendOrPostCallback setAttributeOperationCompleted;
        
        private System.Threading.SendOrPostCallback authenticateOperationCompleted;
        
        private System.Threading.SendOrPostCallback setExtensionOperationCompleted;
        
        private System.Threading.SendOrPostCallback setPatientIdOperationCompleted;
        
        private System.Threading.SendOrPostCallback setServiceIdOperationCompleted;
        
        private System.Threading.SendOrPostCallback setTypeOperationCompleted;
        
        private System.Threading.SendOrPostCallback setDateOperationCompleted;
        
        private System.Threading.SendOrPostCallback setDescriptionIdOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public AttachmentService() {
            this.Url = global::MyKarte.Service.Properties.Settings.Default.RetrieveService_WebReference_AttachmentService;
            if ((this.IsLocalFileSystemWebService(this.Url) == true)) {
                this.UseDefaultCredentials = true;
                this.useDefaultCredentialsSetExplicitly = false;
            }
            else {
                this.useDefaultCredentialsSetExplicitly = true;
            }
        }

        protected override WebResponse GetWebResponse(WebRequest request)
        {
            //return base.GetWebResponse(request);
 
            WebResponse webResponse = base.GetWebResponse(request);

            webResponse.Headers["Content-Type"] = "text/xml";

            return webResponse;
        }
      
        protected override XmlReader GetReaderForMessage(SoapClientMessage message, int bufferSize)
        {
            //return base.GetReaderForMessage(message, bufferSize);

            string envelope = string.Empty;
            
            using (StreamReader sr = new StreamReader(message.Stream))
            {
                Regex regex = new Regex("<soap.*:Envelope.*>.*</soap.*:Envelope>", RegexOptions.IgnoreCase);
                Match match = regex.Match(sr.ReadToEnd());

                if (match.Success)
                {
                    envelope = match.Value;
                }
            }

            return XmlReader.Create(new StringReader(envelope));
        }
        
        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;
            }
        }
        
        /// <remarks/>
        public event storeCompletedEventHandler storeCompleted;
        
        /// <remarks/>
        public event setAttributeCompletedEventHandler setAttributeCompleted;
        
        /// <remarks/>
        public event authenticateCompletedEventHandler authenticateCompleted;
        
        /// <remarks/>
        public event setExtensionCompletedEventHandler setExtensionCompleted;
        
        /// <remarks/>
        public event setPatientIdCompletedEventHandler setPatientIdCompleted;
        
        /// <remarks/>
        public event setServiceIdCompletedEventHandler setServiceIdCompleted;
        
        /// <remarks/>
        public event setTypeCompletedEventHandler setTypeCompleted;
        
        /// <remarks/>
        public event setDateCompletedEventHandler setDateCompleted;
        
        /// <remarks/>
        public event setDescriptionIdCompletedEventHandler setDescriptionIdCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:store", RequestNamespace="http://gw.mykarte.org", ResponseNamespace="http://gw.mykarte.org", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void store(int uniqueId, [System.Xml.Serialization.XmlIgnoreAttribute()] bool uniqueIdSpecified, [System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary", IsNullable=true)] byte[] fileData, out bool @return, [System.Xml.Serialization.XmlIgnoreAttribute()] out bool returnSpecified) {
            object[] results = this.Invoke("store", new object[] {
                        uniqueId,
                        uniqueIdSpecified,
                        fileData});
            @return = ((bool)(results[0]));
            returnSpecified = ((bool)(results[1]));
        }
        
        /// <remarks/>
        public void storeAsync(int uniqueId, bool uniqueIdSpecified, byte[] fileData) {
            this.storeAsync(uniqueId, uniqueIdSpecified, fileData, null);
        }
        
        /// <remarks/>
        public void storeAsync(int uniqueId, bool uniqueIdSpecified, byte[] fileData, object userState) {
            if ((this.storeOperationCompleted == null)) {
                this.storeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnstoreOperationCompleted);
            }
            this.InvokeAsync("store", new object[] {
                        uniqueId,
                        uniqueIdSpecified,
                        fileData}, this.storeOperationCompleted, userState);
        }
        
        private void OnstoreOperationCompleted(object arg) {
            if ((this.storeCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.storeCompleted(this, new storeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:setAttribute", RequestNamespace="http://gw.mykarte.org", ResponseNamespace="http://gw.mykarte.org", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void setAttribute([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string attribute, out bool @return, [System.Xml.Serialization.XmlIgnoreAttribute()] out bool returnSpecified) {
            object[] results = this.Invoke("setAttribute", new object[] {
                        attribute});
            @return = ((bool)(results[0]));
            returnSpecified = ((bool)(results[1]));
        }
        
        /// <remarks/>
        public void setAttributeAsync(string attribute) {
            this.setAttributeAsync(attribute, null);
        }
        
        /// <remarks/>
        public void setAttributeAsync(string attribute, object userState) {
            if ((this.setAttributeOperationCompleted == null)) {
                this.setAttributeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnsetAttributeOperationCompleted);
            }
            this.InvokeAsync("setAttribute", new object[] {
                        attribute}, this.setAttributeOperationCompleted, userState);
        }
        
        private void OnsetAttributeOperationCompleted(object arg) {
            if ((this.setAttributeCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.setAttributeCompleted(this, new setAttributeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:authenticate", RequestNamespace="http://gw.mykarte.org", ResponseNamespace="http://gw.mykarte.org", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void authenticate([System.Xml.Serialization.XmlElementAttribute("args", IsNullable=true)] string[] args, out bool @return, [System.Xml.Serialization.XmlIgnoreAttribute()] out bool returnSpecified) {
            object[] results = this.Invoke("authenticate", new object[] {
                        args});
            @return = ((bool)(results[0]));
            returnSpecified = ((bool)(results[1]));
        }
        
        /// <remarks/>
        public void authenticateAsync(string[] args) {
            this.authenticateAsync(args, null);
        }
        
        /// <remarks/>
        public void authenticateAsync(string[] args, object userState) {
            if ((this.authenticateOperationCompleted == null)) {
                this.authenticateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnauthenticateOperationCompleted);
            }
            this.InvokeAsync("authenticate", new object[] {
                        args}, this.authenticateOperationCompleted, userState);
        }
        
        private void OnauthenticateOperationCompleted(object arg) {
            if ((this.authenticateCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.authenticateCompleted(this, new authenticateCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:setExtension", RequestNamespace="http://gw.mykarte.org", ResponseNamespace="http://gw.mykarte.org", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void setExtension([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string extension, out bool @return, [System.Xml.Serialization.XmlIgnoreAttribute()] out bool returnSpecified) {
            object[] results = this.Invoke("setExtension", new object[] {
                        extension});
            @return = ((bool)(results[0]));
            returnSpecified = ((bool)(results[1]));
        }
        
        /// <remarks/>
        public void setExtensionAsync(string extension) {
            this.setExtensionAsync(extension, null);
        }
        
        /// <remarks/>
        public void setExtensionAsync(string extension, object userState) {
            if ((this.setExtensionOperationCompleted == null)) {
                this.setExtensionOperationCompleted = new System.Threading.SendOrPostCallback(this.OnsetExtensionOperationCompleted);
            }
            this.InvokeAsync("setExtension", new object[] {
                        extension}, this.setExtensionOperationCompleted, userState);
        }
        
        private void OnsetExtensionOperationCompleted(object arg) {
            if ((this.setExtensionCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.setExtensionCompleted(this, new setExtensionCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:setPatientId", RequestNamespace="http://gw.mykarte.org", ResponseNamespace="http://gw.mykarte.org", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void setPatientId([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string patientId, out bool @return, [System.Xml.Serialization.XmlIgnoreAttribute()] out bool returnSpecified) {
            object[] results = this.Invoke("setPatientId", new object[] {
                        patientId});
            @return = ((bool)(results[0]));
            returnSpecified = ((bool)(results[1]));
        }
        
        /// <remarks/>
        public void setPatientIdAsync(string patientId) {
            this.setPatientIdAsync(patientId, null);
        }
        
        /// <remarks/>
        public void setPatientIdAsync(string patientId, object userState) {
            if ((this.setPatientIdOperationCompleted == null)) {
                this.setPatientIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnsetPatientIdOperationCompleted);
            }
            this.InvokeAsync("setPatientId", new object[] {
                        patientId}, this.setPatientIdOperationCompleted, userState);
        }
        
        private void OnsetPatientIdOperationCompleted(object arg) {
            if ((this.setPatientIdCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.setPatientIdCompleted(this, new setPatientIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:setServiceId", RequestNamespace="http://gw.mykarte.org", ResponseNamespace="http://gw.mykarte.org", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void setServiceId([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string serviceId, out bool @return, [System.Xml.Serialization.XmlIgnoreAttribute()] out bool returnSpecified) {
            object[] results = this.Invoke("setServiceId", new object[] {
                        serviceId});
            @return = ((bool)(results[0]));
            returnSpecified = ((bool)(results[1]));
        }
        
        /// <remarks/>
        public void setServiceIdAsync(string serviceId) {
            this.setServiceIdAsync(serviceId, null);
        }
        
        /// <remarks/>
        public void setServiceIdAsync(string serviceId, object userState) {
            if ((this.setServiceIdOperationCompleted == null)) {
                this.setServiceIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnsetServiceIdOperationCompleted);
            }
            this.InvokeAsync("setServiceId", new object[] {
                        serviceId}, this.setServiceIdOperationCompleted, userState);
        }
        
        private void OnsetServiceIdOperationCompleted(object arg) {
            if ((this.setServiceIdCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.setServiceIdCompleted(this, new setServiceIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:setType", RequestNamespace="http://gw.mykarte.org", ResponseNamespace="http://gw.mykarte.org", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void setType([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string type, out bool @return, [System.Xml.Serialization.XmlIgnoreAttribute()] out bool returnSpecified) {
            object[] results = this.Invoke("setType", new object[] {
                        type});
            @return = ((bool)(results[0]));
            returnSpecified = ((bool)(results[1]));
        }
        
        /// <remarks/>
        public void setTypeAsync(string type) {
            this.setTypeAsync(type, null);
        }
        
        /// <remarks/>
        public void setTypeAsync(string type, object userState) {
            if ((this.setTypeOperationCompleted == null)) {
                this.setTypeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnsetTypeOperationCompleted);
            }
            this.InvokeAsync("setType", new object[] {
                        type}, this.setTypeOperationCompleted, userState);
        }
        
        private void OnsetTypeOperationCompleted(object arg) {
            if ((this.setTypeCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.setTypeCompleted(this, new setTypeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:setDate", RequestNamespace="http://gw.mykarte.org", ResponseNamespace="http://gw.mykarte.org", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void setDate([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] System.Nullable<System.DateTime> date, [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] [System.Xml.Serialization.XmlIgnoreAttribute()] bool dateSpecified, out bool @return, [System.Xml.Serialization.XmlIgnoreAttribute()] out bool returnSpecified) {
            object[] results = this.Invoke("setDate", new object[] {
                        date,
                        dateSpecified});
            @return = ((bool)(results[0]));
            returnSpecified = ((bool)(results[1]));
        }
        
        /// <remarks/>
        public void setDateAsync(System.Nullable<System.DateTime> date, bool dateSpecified) {
            this.setDateAsync(date, dateSpecified, null);
        }
        
        /// <remarks/>
        public void setDateAsync(System.Nullable<System.DateTime> date, bool dateSpecified, object userState) {
            if ((this.setDateOperationCompleted == null)) {
                this.setDateOperationCompleted = new System.Threading.SendOrPostCallback(this.OnsetDateOperationCompleted);
            }
            this.InvokeAsync("setDate", new object[] {
                        date,
                        dateSpecified}, this.setDateOperationCompleted, userState);
        }
        
        private void OnsetDateOperationCompleted(object arg) {
            if ((this.setDateCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.setDateCompleted(this, new setDateCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:setDescriptionId", RequestNamespace="http://gw.mykarte.org", ResponseNamespace="http://gw.mykarte.org", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public void setDescriptionId([System.Xml.Serialization.XmlElementAttribute(IsNullable=true)] string descriptionId, out bool @return, [System.Xml.Serialization.XmlIgnoreAttribute()] out bool returnSpecified) {
            object[] results = this.Invoke("setDescriptionId", new object[] {
                        descriptionId});
            @return = ((bool)(results[0]));
            returnSpecified = ((bool)(results[1]));
        }
        
        /// <remarks/>
        public void setDescriptionIdAsync(string descriptionId) {
            this.setDescriptionIdAsync(descriptionId, null);
        }
        
        /// <remarks/>
        public void setDescriptionIdAsync(string descriptionId, object userState) {
            if ((this.setDescriptionIdOperationCompleted == null)) {
                this.setDescriptionIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnsetDescriptionIdOperationCompleted);
            }
            this.InvokeAsync("setDescriptionId", new object[] {
                        descriptionId}, this.setDescriptionIdOperationCompleted, userState);
        }
        
        private void OnsetDescriptionIdOperationCompleted(object arg) {
            if ((this.setDescriptionIdCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.setDescriptionIdCompleted(this, new setDescriptionIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        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;
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    public delegate void storeCompletedEventHandler(object sender, storeCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class storeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal storeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool @return {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
        
        /// <remarks/>
        public bool returnSpecified {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[1]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    public delegate void setAttributeCompletedEventHandler(object sender, setAttributeCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class setAttributeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal setAttributeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool @return {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
        
        /// <remarks/>
        public bool returnSpecified {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[1]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    public delegate void authenticateCompletedEventHandler(object sender, authenticateCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class authenticateCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal authenticateCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool @return {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
        
        /// <remarks/>
        public bool returnSpecified {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[1]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    public delegate void setExtensionCompletedEventHandler(object sender, setExtensionCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class setExtensionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal setExtensionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool @return {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
        
        /// <remarks/>
        public bool returnSpecified {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[1]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    public delegate void setPatientIdCompletedEventHandler(object sender, setPatientIdCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class setPatientIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal setPatientIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool @return {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
        
        /// <remarks/>
        public bool returnSpecified {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[1]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    public delegate void setServiceIdCompletedEventHandler(object sender, setServiceIdCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class setServiceIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal setServiceIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool @return {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
        
        /// <remarks/>
        public bool returnSpecified {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[1]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    public delegate void setTypeCompletedEventHandler(object sender, setTypeCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class setTypeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal setTypeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool @return {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
        
        /// <remarks/>
        public bool returnSpecified {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[1]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    public delegate void setDateCompletedEventHandler(object sender, setDateCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class setDateCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal setDateCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool @return {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
        
        /// <remarks/>
        public bool returnSpecified {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[1]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    public delegate void setDescriptionIdCompletedEventHandler(object sender, setDescriptionIdCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "2.0.50727.3053")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class setDescriptionIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal setDescriptionIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public bool @return {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[0]));
            }
        }
        
        /// <remarks/>
        public bool returnSpecified {
            get {
                this.RaiseExceptionIfNecessary();
                return ((bool)(this.results[1]));
            }
        }
    }
}

#pragma warning restore 1591