'------------------------------------------------------------------------------
' <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>
'------------------------------------------------------------------------------

Option Strict Off
Option Explicit On

Imports System
Imports System.ComponentModel
Imports System.Diagnostics
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Xml.Serialization

'
'This source code was auto-generated by Microsoft.VSDesigner, Version 4.0.30319.17929.
'
Namespace RetrieveResultsWebService
    
    '''<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")>  _
    Partial Public Class RetrieveResultsService
        Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
        
        Private getResultsOperationCompleted As System.Threading.SendOrPostCallback
        
        Private acknowledgeResultsOperationCompleted As System.Threading.SendOrPostCallback
        
        Private getProviderAccountsOperationCompleted As System.Threading.SendOrPostCallback
        
        Private useDefaultCredentialsSetExplicitly As Boolean
        
        '''<remarks/>
        Public Sub New()
            MyBase.New
            Me.Url = Global.RetrieveResultsRestSampleCode.My.MySettings.Default.RetrieveResultsSampleCode_RetrieveResultsWebService_RetrieveResultsService
            If (Me.IsLocalFileSystemWebService(Me.Url) = true) Then
                Me.UseDefaultCredentials = true
                Me.useDefaultCredentialsSetExplicitly = false
            Else
                Me.useDefaultCredentialsSetExplicitly = true
            End If
        End Sub
        
        Public Shadows Property Url() As String
            Get
                Return MyBase.Url
            End Get
            Set
                If (((Me.IsLocalFileSystemWebService(MyBase.Url) = true)  _
                            AndAlso (Me.useDefaultCredentialsSetExplicitly = false))  _
                            AndAlso (Me.IsLocalFileSystemWebService(value) = false)) Then
                    MyBase.UseDefaultCredentials = false
                End If
                MyBase.Url = value
            End Set
        End Property
        
        Public Shadows Property UseDefaultCredentials() As Boolean
            Get
                Return MyBase.UseDefaultCredentials
            End Get
            Set
                MyBase.UseDefaultCredentials = value
                Me.useDefaultCredentialsSetExplicitly = true
            End Set
        End Property
        
        '''<remarks/>
        Public Event getResultsCompleted As getResultsCompletedEventHandler
        
        '''<remarks/>
        Public Event acknowledgeResultsCompleted As acknowledgeResultsCompletedEventHandler
        
        '''<remarks/>
        Public Event getProviderAccountsCompleted As getProviderAccountsCompletedEventHandler
        
        '''<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)>  _
        Public Function getResults(ByVal RetrieveResultsRequest As retrieveResultsRequest) As <System.Xml.Serialization.XmlElementAttribute("Results")> retrieveResultsResponse
            Dim results() As Object = Me.Invoke("getResults", New Object() {RetrieveResultsRequest})
            Return CType(results(0),retrieveResultsResponse)
        End Function
        
        '''<remarks/>
        Public Overloads Sub getResultsAsync(ByVal RetrieveResultsRequest As retrieveResultsRequest)
            Me.getResultsAsync(RetrieveResultsRequest, Nothing)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub getResultsAsync(ByVal RetrieveResultsRequest As retrieveResultsRequest, ByVal userState As Object)
            If (Me.getResultsOperationCompleted Is Nothing) Then
                Me.getResultsOperationCompleted = AddressOf Me.OngetResultsOperationCompleted
            End If
            Me.InvokeAsync("getResults", New Object() {RetrieveResultsRequest}, Me.getResultsOperationCompleted, userState)
        End Sub
        
        Private Sub OngetResultsOperationCompleted(ByVal arg As Object)
            If (Not (Me.getResultsCompletedEvent) Is Nothing) Then
                Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
                RaiseEvent getResultsCompleted(Me, New getResultsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState))
            End If
        End Sub
        
        '''<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)>  _
        Public Function acknowledgeResults(ByVal RetrieveResultsAcknowledge As ackResultsRequest) As <System.Xml.Serialization.XmlElementAttribute("AckResult")> retrieveResultsResponse
            Dim results() As Object = Me.Invoke("acknowledgeResults", New Object() {RetrieveResultsAcknowledge})
            Return CType(results(0),retrieveResultsResponse)
        End Function
        
        '''<remarks/>
        Public Overloads Sub acknowledgeResultsAsync(ByVal RetrieveResultsAcknowledge As ackResultsRequest)
            Me.acknowledgeResultsAsync(RetrieveResultsAcknowledge, Nothing)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub acknowledgeResultsAsync(ByVal RetrieveResultsAcknowledge As ackResultsRequest, ByVal userState As Object)
            If (Me.acknowledgeResultsOperationCompleted Is Nothing) Then
                Me.acknowledgeResultsOperationCompleted = AddressOf Me.OnacknowledgeResultsOperationCompleted
            End If
            Me.InvokeAsync("acknowledgeResults", New Object() {RetrieveResultsAcknowledge}, Me.acknowledgeResultsOperationCompleted, userState)
        End Sub
        
        Private Sub OnacknowledgeResultsOperationCompleted(ByVal arg As Object)
            If (Not (Me.acknowledgeResultsCompletedEvent) Is Nothing) Then
                Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
                RaiseEvent acknowledgeResultsCompleted(Me, New acknowledgeResultsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState))
            End If
        End Sub
        
        '''<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)>  _
        Public Function getProviderAccounts() As <System.Xml.Serialization.XmlElementAttribute("ProviderAccounts")> retrieveResultsResponse
            Dim results() As Object = Me.Invoke("getProviderAccounts", New Object(-1) {})
            Return CType(results(0),retrieveResultsResponse)
        End Function
        
        '''<remarks/>
        Public Overloads Sub getProviderAccountsAsync()
            Me.getProviderAccountsAsync(Nothing)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub getProviderAccountsAsync(ByVal userState As Object)
            If (Me.getProviderAccountsOperationCompleted Is Nothing) Then
                Me.getProviderAccountsOperationCompleted = AddressOf Me.OngetProviderAccountsOperationCompleted
            End If
            Me.InvokeAsync("getProviderAccounts", New Object(-1) {}, Me.getProviderAccountsOperationCompleted, userState)
        End Sub
        
        Private Sub OngetProviderAccountsOperationCompleted(ByVal arg As Object)
            If (Not (Me.getProviderAccountsCompletedEvent) Is Nothing) Then
                Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
                RaiseEvent getProviderAccountsCompleted(Me, New getProviderAccountsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState))
            End If
        End Sub
        
        '''<remarks/>
        Public Shadows Sub CancelAsync(ByVal userState As Object)
            MyBase.CancelAsync(userState)
        End Sub
        
        Private Function IsLocalFileSystemWebService(ByVal url As String) As Boolean
            If ((url Is Nothing)  _
                        OrElse (url Is String.Empty)) Then
                Return false
            End If
            Dim wsUri As System.Uri = New System.Uri(url)
            If ((wsUri.Port >= 1024)  _
                        AndAlso (String.Compare(wsUri.Host, "localHost", System.StringComparison.OrdinalIgnoreCase) = 0)) Then
                Return true
            End If
            Return false
        End Function
    End Class
    
    '''<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")>  _
    Partial Public Class retrieveResultsRequest
        
        Private providerAccountsField() As providerAccount
        
        Private requestParametersField() As requestParameter
        
        Private resultServiceTypeField As String
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute("providerAccounts", Form:=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable:=true)>  _
        Public Property providerAccounts() As providerAccount()
            Get
                Return Me.providerAccountsField
            End Get
            Set
                Me.providerAccountsField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute("requestParameters", Form:=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable:=true)>  _
        Public Property requestParameters() As requestParameter()
            Get
                Return Me.requestParametersField
            End Get
            Set
                Me.requestParametersField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property resultServiceType() As String
            Get
                Return Me.resultServiceTypeField
            End Get
            Set
                Me.resultServiceTypeField = value
            End Set
        End Property
    End Class
    
    '''<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")>  _
    Partial Public Class providerAccount
        
        Private providerAccountNameField As String
        
        Private providerNameField As String
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property providerAccountName() As String
            Get
                Return Me.providerAccountNameField
            End Get
            Set
                Me.providerAccountNameField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property providerName() As String
            Get
                Return Me.providerNameField
            End Get
            Set
                Me.providerNameField = value
            End Set
        End Property
    End Class
    
    '''<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")>  _
    Partial Public Class ackResultsRequest
        
        Private ackMessagesField() As hl7Message
        
        Private requestIdField As String
        
        Private requestParametersField() As requestParameter
        
        Private resultServiceTypeField As String
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute("ackMessages", Form:=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable:=true)>  _
        Public Property ackMessages() As hl7Message()
            Get
                Return Me.ackMessagesField
            End Get
            Set
                Me.ackMessagesField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property requestId() As String
            Get
                Return Me.requestIdField
            End Get
            Set
                Me.requestIdField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute("requestParameters", Form:=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable:=true)>  _
        Public Property requestParameters() As requestParameter()
            Get
                Return Me.requestParametersField
            End Get
            Set
                Me.requestParametersField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property resultServiceType() As String
            Get
                Return Me.resultServiceTypeField
            End Get
            Set
                Me.resultServiceTypeField = value
            End Set
        End Property
    End Class
    
    '''<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")>  _
    Partial Public Class hl7Message
        
        Private controlIdField As String
        
        Private messageField() As Byte
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property controlId() As String
            Get
                Return Me.controlIdField
            End Get
            Set
                Me.controlIdField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified, DataType:="base64Binary")>  _
        Public Property message() As Byte()
            Get
                Return Me.messageField
            End Get
            Set
                Me.messageField = value
            End Set
        End Property
    End Class
    
    '''<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")>  _
    Partial Public Class requestParameter
        
        Private parameterNameField As String
        
        Private parameterValueField As String
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property parameterName() As String
            Get
                Return Me.parameterNameField
            End Get
            Set
                Me.parameterNameField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property parameterValue() As String
            Get
                Return Me.parameterValueField
            End Get
            Set
                Me.parameterValueField = value
            End Set
        End Property
    End Class
    
    '''<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")>  _
    Partial Public Class resultInfo
        
        Private arrivalDateField As Date
        
        Private arrivalDateFieldSpecified As Boolean
        
        Private messageControlIdField As String
        
        Private providerAcctIdField As String
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property arrivalDate() As Date
            Get
                Return Me.arrivalDateField
            End Get
            Set
                Me.arrivalDateField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlIgnoreAttribute()>  _
        Public Property arrivalDateSpecified() As Boolean
            Get
                Return Me.arrivalDateFieldSpecified
            End Get
            Set
                Me.arrivalDateFieldSpecified = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property messageControlId() As String
            Get
                Return Me.messageControlIdField
            End Get
            Set
                Me.messageControlIdField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property providerAcctId() As String
            Get
                Return Me.providerAcctIdField
            End Get
            Set
                Me.providerAcctIdField = value
            End Set
        End Property
    End Class
    
    '''<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")>  _
    Partial Public Class resultDocument
        
        Private documentDataField() As Byte
        
        Private documentIdField As String
        
        Private fileMimeTypeField As String
        
        Private fileNameField As String
        
        Private resultInfoField As resultInfo
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified, DataType:="base64Binary")>  _
        Public Property documentData() As Byte()
            Get
                Return Me.documentDataField
            End Get
            Set
                Me.documentDataField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property documentId() As String
            Get
                Return Me.documentIdField
            End Get
            Set
                Me.documentIdField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property fileMimeType() As String
            Get
                Return Me.fileMimeTypeField
            End Get
            Set
                Me.fileMimeTypeField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property fileName() As String
            Get
                Return Me.fileNameField
            End Get
            Set
                Me.fileNameField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property resultInfo() As resultInfo
            Get
                Return Me.resultInfoField
            End Get
            Set
                Me.resultInfoField = value
            End Set
        End Property
    End Class
    
    '''<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")>  _
    Partial Public Class result
        
        Private documentsField() As resultDocument
        
        Private hL7MessageField As hl7Message
        
        Private resultIdField As String
        
        Private resultTypeField As String
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute("documents", Form:=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable:=true)>  _
        Public Property documents() As resultDocument()
            Get
                Return Me.documentsField
            End Get
            Set
                Me.documentsField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property HL7Message() As hl7Message
            Get
                Return Me.hL7MessageField
            End Get
            Set
                Me.hL7MessageField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property resultId() As String
            Get
                Return Me.resultIdField
            End Get
            Set
                Me.resultIdField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property resultType() As String
            Get
                Return Me.resultTypeField
            End Get
            Set
                Me.resultTypeField = value
            End Set
        End Property
    End Class
    
    '''<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")>  _
    Partial Public Class retrieveResultsResponse
        
        Private errorMessagesField() As String
        
        Private isMoreField As Boolean
        
        Private isMoreFieldSpecified As Boolean
        
        Private providerAccountsField() As providerAccount
        
        Private requestIdField As String
        
        Private resultsField() As result
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute("errorMessages", Form:=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable:=true)>  _
        Public Property errorMessages() As String()
            Get
                Return Me.errorMessagesField
            End Get
            Set
                Me.errorMessagesField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property isMore() As Boolean
            Get
                Return Me.isMoreField
            End Get
            Set
                Me.isMoreField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlIgnoreAttribute()>  _
        Public Property isMoreSpecified() As Boolean
            Get
                Return Me.isMoreFieldSpecified
            End Get
            Set
                Me.isMoreFieldSpecified = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute("providerAccounts", Form:=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable:=true)>  _
        Public Property providerAccounts() As providerAccount()
            Get
                Return Me.providerAccountsField
            End Get
            Set
                Me.providerAccountsField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute(Form:=System.Xml.Schema.XmlSchemaForm.Unqualified)>  _
        Public Property requestId() As String
            Get
                Return Me.requestIdField
            End Get
            Set
                Me.requestIdField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute("results", Form:=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable:=true)>  _
        Public Property results() As result()
            Get
                Return Me.resultsField
            End Get
            Set
                Me.resultsField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")>  _
    Public Delegate Sub getResultsCompletedEventHandler(ByVal sender As Object, ByVal e As getResultsCompletedEventArgs)
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code")>  _
    Partial Public Class getResultsCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Friend Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        '''<remarks/>
        Public ReadOnly Property Result() As retrieveResultsResponse
            Get
                Me.RaiseExceptionIfNecessary
                Return CType(Me.results(0),retrieveResultsResponse)
            End Get
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")>  _
    Public Delegate Sub acknowledgeResultsCompletedEventHandler(ByVal sender As Object, ByVal e As acknowledgeResultsCompletedEventArgs)
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code")>  _
    Partial Public Class acknowledgeResultsCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Friend Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        '''<remarks/>
        Public ReadOnly Property Result() As retrieveResultsResponse
            Get
                Me.RaiseExceptionIfNecessary
                Return CType(Me.results(0),retrieveResultsResponse)
            End Get
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929")>  _
    Public Delegate Sub getProviderAccountsCompletedEventHandler(ByVal sender As Object, ByVal e As getProviderAccountsCompletedEventArgs)
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.17929"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code")>  _
    Partial Public Class getProviderAccountsCompletedEventArgs
        Inherits System.ComponentModel.AsyncCompletedEventArgs
        
        Private results() As Object
        
        Friend Sub New(ByVal results() As Object, ByVal exception As System.Exception, ByVal cancelled As Boolean, ByVal userState As Object)
            MyBase.New(exception, cancelled, userState)
            Me.results = results
        End Sub
        
        '''<remarks/>
        Public ReadOnly Property Result() As retrieveResultsResponse
            Get
                Me.RaiseExceptionIfNecessary
                Return CType(Me.results(0),retrieveResultsResponse)
            End Get
        End Property
    End Class
End Namespace
