//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:4.0.30319.17929
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

// 
// This source code was auto-generated by Microsoft.VSDesigner, Version 4.0.30319.17929.
// 
#pragma warning disable 1591

namespace RetrieveResultsSampleCodeCS.RetrieveResultsWebService {
    using System;
    using System.Web.Services;
    using System.Diagnostics;
    using System.Web.Services.Protocols;
    using System.Xml.Serialization;
    using System.ComponentModel;
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Web.Services.WebServiceBindingAttribute(Name="RetrieveResultsPortTypePortBinding", Namespace="http://medplus.com/results")]
    public partial class RetrieveResultsService : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        private System.Threading.SendOrPostCallback getResultsOperationCompleted;
        
        private System.Threading.SendOrPostCallback acknowledgeResultsOperationCompleted;
        
        private System.Threading.SendOrPostCallback getProviderAccountsOperationCompleted;
        
        private bool useDefaultCredentialsSetExplicitly;
        
        /// <remarks/>
        public RetrieveResultsService() {
            this.Url = global::RetrieveResultsSampleCodeCS.Properties.Settings.Default.RetrieveResultsSampleCodeCS_RetrieveResultsWebService_RetrieveResultsService;
            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;
            }
        }
        
        /// <remarks/>
        public event getResultsCompletedEventHandler getResultsCompleted;
        
        /// <remarks/>
        public event acknowledgeResultsCompletedEventHandler acknowledgeResultsCompleted;
        
        /// <remarks/>
        public event getProviderAccountsCompletedEventHandler getProviderAccountsCompleted;
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="http://medplus.com/results", ResponseNamespace="http://medplus.com/results", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("Results")]
        public retrieveResultsResponse getResults(retrieveResultsRequest RetrieveResultsRequest) {
            object[] results = this.Invoke("getResults", new object[] {
                        RetrieveResultsRequest});
            return ((retrieveResultsResponse)(results[0]));
        }
        
        /// <remarks/>
        public void getResultsAsync(retrieveResultsRequest RetrieveResultsRequest) {
            this.getResultsAsync(RetrieveResultsRequest, null);
        }
        
        /// <remarks/>
        public void getResultsAsync(retrieveResultsRequest RetrieveResultsRequest, object userState) {
            if ((this.getResultsOperationCompleted == null)) {
                this.getResultsOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetResultsOperationCompleted);
            }
            this.InvokeAsync("getResults", new object[] {
                        RetrieveResultsRequest}, this.getResultsOperationCompleted, userState);
        }
        
        private void OngetResultsOperationCompleted(object arg) {
            if ((this.getResultsCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.getResultsCompleted(this, new getResultsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="http://medplus.com/results", ResponseNamespace="http://medplus.com/results", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("AckResult")]
        public retrieveResultsResponse acknowledgeResults(ackResultsRequest RetrieveResultsAcknowledge) {
            object[] results = this.Invoke("acknowledgeResults", new object[] {
                        RetrieveResultsAcknowledge});
            return ((retrieveResultsResponse)(results[0]));
        }
        
        /// <remarks/>
        public void acknowledgeResultsAsync(ackResultsRequest RetrieveResultsAcknowledge) {
            this.acknowledgeResultsAsync(RetrieveResultsAcknowledge, null);
        }
        
        /// <remarks/>
        public void acknowledgeResultsAsync(ackResultsRequest RetrieveResultsAcknowledge, object userState) {
            if ((this.acknowledgeResultsOperationCompleted == null)) {
                this.acknowledgeResultsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnacknowledgeResultsOperationCompleted);
            }
            this.InvokeAsync("acknowledgeResults", new object[] {
                        RetrieveResultsAcknowledge}, this.acknowledgeResultsOperationCompleted, userState);
        }
        
        private void OnacknowledgeResultsOperationCompleted(object arg) {
            if ((this.acknowledgeResultsCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.acknowledgeResultsCompleted(this, new acknowledgeResultsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
            }
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("", RequestNamespace="http://medplus.com/results", ResponseNamespace="http://medplus.com/results", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        [return: System.Xml.Serialization.XmlElementAttribute("ProviderAccounts")]
        public retrieveResultsResponse getProviderAccounts() {
            object[] results = this.Invoke("getProviderAccounts", new object[0]);
            return ((retrieveResultsResponse)(results[0]));
        }
        
        /// <remarks/>
        public void getProviderAccountsAsync() {
            this.getProviderAccountsAsync(null);
        }
        
        /// <remarks/>
        public void getProviderAccountsAsync(object userState) {
            if ((this.getProviderAccountsOperationCompleted == null)) {
                this.getProviderAccountsOperationCompleted = new System.Threading.SendOrPostCallback(this.OngetProviderAccountsOperationCompleted);
            }
            this.InvokeAsync("getProviderAccounts", new object[0], this.getProviderAccountsOperationCompleted, userState);
        }
        
        private void OngetProviderAccountsOperationCompleted(object arg) {
            if ((this.getProviderAccountsCompleted != null)) {
                System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
                this.getProviderAccountsCompleted(this, new getProviderAccountsCompletedEventArgs(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.Xml", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://medplus.com/results")]
    public partial class retrieveResultsRequest {
        
        private providerAccount[] providerAccountsField;
        
        private requestParameter[] requestParametersField;
        
        private string resultServiceTypeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("providerAccounts", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true)]
        public providerAccount[] providerAccounts {
            get {
                return this.providerAccountsField;
            }
            set {
                this.providerAccountsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("requestParameters", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true)]
        public requestParameter[] requestParameters {
            get {
                return this.requestParametersField;
            }
            set {
                this.requestParametersField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string resultServiceType {
            get {
                return this.resultServiceTypeField;
            }
            set {
                this.resultServiceTypeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://medplus.com/results")]
    public partial class providerAccount {
        
        private string providerAccountNameField;
        
        private string providerNameField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string providerAccountName {
            get {
                return this.providerAccountNameField;
            }
            set {
                this.providerAccountNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string providerName {
            get {
                return this.providerNameField;
            }
            set {
                this.providerNameField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://medplus.com/results")]
    public partial class ackResultsRequest {
        
        private hl7Message[] ackMessagesField;
        
        private string requestIdField;
        
        private requestParameter[] requestParametersField;
        
        private string resultServiceTypeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("ackMessages", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true)]
        public hl7Message[] ackMessages {
            get {
                return this.ackMessagesField;
            }
            set {
                this.ackMessagesField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string requestId {
            get {
                return this.requestIdField;
            }
            set {
                this.requestIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("requestParameters", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true)]
        public requestParameter[] requestParameters {
            get {
                return this.requestParametersField;
            }
            set {
                this.requestParametersField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string resultServiceType {
            get {
                return this.resultServiceTypeField;
            }
            set {
                this.resultServiceTypeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://medplus.com/results")]
    public partial class hl7Message {
        
        private string controlIdField;
        
        private byte[] messageField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string controlId {
            get {
                return this.controlIdField;
            }
            set {
                this.controlIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, DataType="base64Binary")]
        public byte[] message {
            get {
                return this.messageField;
            }
            set {
                this.messageField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://medplus.com/results")]
    public partial class requestParameter {
        
        private string parameterNameField;
        
        private string parameterValueField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string parameterName {
            get {
                return this.parameterNameField;
            }
            set {
                this.parameterNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string parameterValue {
            get {
                return this.parameterValueField;
            }
            set {
                this.parameterValueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://medplus.com/results")]
    public partial class resultInfo {
        
        private System.DateTime arrivalDateField;
        
        private bool arrivalDateFieldSpecified;
        
        private string messageControlIdField;
        
        private string providerAcctIdField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public System.DateTime arrivalDate {
            get {
                return this.arrivalDateField;
            }
            set {
                this.arrivalDateField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool arrivalDateSpecified {
            get {
                return this.arrivalDateFieldSpecified;
            }
            set {
                this.arrivalDateFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string messageControlId {
            get {
                return this.messageControlIdField;
            }
            set {
                this.messageControlIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string providerAcctId {
            get {
                return this.providerAcctIdField;
            }
            set {
                this.providerAcctIdField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://medplus.com/results")]
    public partial class resultDocument {
        
        private byte[] documentDataField;
        
        private string documentIdField;
        
        private string fileMimeTypeField;
        
        private string fileNameField;
        
        private resultInfo resultInfoField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, DataType="base64Binary")]
        public byte[] documentData {
            get {
                return this.documentDataField;
            }
            set {
                this.documentDataField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string documentId {
            get {
                return this.documentIdField;
            }
            set {
                this.documentIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string fileMimeType {
            get {
                return this.fileMimeTypeField;
            }
            set {
                this.fileMimeTypeField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string fileName {
            get {
                return this.fileNameField;
            }
            set {
                this.fileNameField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public resultInfo resultInfo {
            get {
                return this.resultInfoField;
            }
            set {
                this.resultInfoField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://medplus.com/results")]
    public partial class result {
        
        private resultDocument[] documentsField;
        
        private hl7Message hL7MessageField;
        
        private string resultIdField;
        
        private string resultTypeField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("documents", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true)]
        public resultDocument[] documents {
            get {
                return this.documentsField;
            }
            set {
                this.documentsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public hl7Message HL7Message {
            get {
                return this.hL7MessageField;
            }
            set {
                this.hL7MessageField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string resultId {
            get {
                return this.resultIdField;
            }
            set {
                this.resultIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string resultType {
            get {
                return this.resultTypeField;
            }
            set {
                this.resultTypeField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.17929")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://medplus.com/results")]
    public partial class retrieveResultsResponse {
        
        private string[] errorMessagesField;
        
        private bool isMoreField;
        
        private bool isMoreFieldSpecified;
        
        private providerAccount[] providerAccountsField;
        
        private string requestIdField;
        
        private result[] resultsField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("errorMessages", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true)]
        public string[] errorMessages {
            get {
                return this.errorMessagesField;
            }
            set {
                this.errorMessagesField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public bool isMore {
            get {
                return this.isMoreField;
            }
            set {
                this.isMoreField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool isMoreSpecified {
            get {
                return this.isMoreFieldSpecified;
            }
            set {
                this.isMoreFieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("providerAccounts", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true)]
        public providerAccount[] providerAccounts {
            get {
                return this.providerAccountsField;
            }
            set {
                this.providerAccountsField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public string requestId {
            get {
                return this.requestIdField;
            }
            set {
                this.requestIdField = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("results", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true)]
        public result[] results {
            get {
                return this.resultsField;
            }
            set {
                this.resultsField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")]
    public delegate void getResultsCompletedEventHandler(object sender, getResultsCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class getResultsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal getResultsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public retrieveResultsResponse Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((retrieveResultsResponse)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")]
    public delegate void acknowledgeResultsCompletedEventHandler(object sender, acknowledgeResultsCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class acknowledgeResultsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal acknowledgeResultsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public retrieveResultsResponse Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((retrieveResultsResponse)(this.results[0]));
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")]
    public delegate void getProviderAccountsCompletedEventHandler(object sender, getProviderAccountsCompletedEventArgs e);
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    public partial class getProviderAccountsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs {
        
        private object[] results;
        
        internal getProviderAccountsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 
                base(exception, cancelled, userState) {
            this.results = results;
        }
        
        /// <remarks/>
        public retrieveResultsResponse Result {
            get {
                this.RaiseExceptionIfNecessary();
                return ((retrieveResultsResponse)(this.results[0]));
            }
        }
    }
}

#pragma warning restore 1591