'------------------------------------------------------------------------------
' <auto-generated>
'     This code was generated by a tool.
'     Runtime Version:4.0.30319.269
'
'     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.269.
'
Namespace WS_Location
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Web.Services.WebServiceBindingAttribute(Name:="LocationServiceSchema", [Namespace]:="http://charter.com/enterprise/VeriSignServices")>  _
    Partial Public Class LocationServiceSchemaPort
        Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
        
        Private charterHeaderInfoValueField As CharterHeaderInfo
        
        Private GetLocationByPhoneOperationCompleted As System.Threading.SendOrPostCallback
        
        Private useDefaultCredentialsSetExplicitly As Boolean
        
        '''<remarks/>
        Public Sub New()
            MyBase.New
            Me.Url = Global.EBSServicesProvider.My.MySettings.Default.EBSServicesProvider_WS_Location_LocationServiceSchemaPort
            If (Me.IsLocalFileSystemWebService(Me.Url) = true) Then
                Me.UseDefaultCredentials = true
                Me.useDefaultCredentialsSetExplicitly = false
            Else
                Me.useDefaultCredentialsSetExplicitly = true
            End If
        End Sub
        
        Public Property CharterHeaderInfoValue() As CharterHeaderInfo
            Get
                Return Me.charterHeaderInfoValueField
            End Get
            Set
                Me.charterHeaderInfoValueField = value
            End Set
        End Property
        
        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 GetLocationByPhoneCompleted As GetLocationByPhoneCompletedEventHandler
        
        '''<remarks/>
        <System.Web.Services.Protocols.SoapHeaderAttribute("CharterHeaderInfoValue"),  _
         System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://charter.com/enterprise/VeriSignServices:getLocationByPhoneIn", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Bare)>  _
        Public Function GetLocationByPhone(<System.Xml.Serialization.XmlElementAttribute([Namespace]:="http://charter.com/enterprise/VeriSignServices")> ByVal GetLocationByPhoneRequest As GetLocationByPhoneRequest) As <System.Xml.Serialization.XmlElementAttribute("GetLocationByPhoneResponse", [Namespace]:="http://charter.com/enterprise/VeriSignServices")> GetLocationByPhoneResponse
            Dim results() As Object = Me.Invoke("GetLocationByPhone", New Object() {GetLocationByPhoneRequest})
            Return CType(results(0),GetLocationByPhoneResponse)
        End Function
        
        '''<remarks/>
        Public Overloads Sub GetLocationByPhoneAsync(ByVal GetLocationByPhoneRequest As GetLocationByPhoneRequest)
            Me.GetLocationByPhoneAsync(GetLocationByPhoneRequest, Nothing)
        End Sub
        
        '''<remarks/>
        Public Overloads Sub GetLocationByPhoneAsync(ByVal GetLocationByPhoneRequest As GetLocationByPhoneRequest, ByVal userState As Object)
            If (Me.GetLocationByPhoneOperationCompleted Is Nothing) Then
                Me.GetLocationByPhoneOperationCompleted = AddressOf Me.OnGetLocationByPhoneOperationCompleted
            End If
            Me.InvokeAsync("GetLocationByPhone", New Object() {GetLocationByPhoneRequest}, Me.GetLocationByPhoneOperationCompleted, userState)
        End Sub
        
        Private Sub OnGetLocationByPhoneOperationCompleted(ByVal arg As Object)
            If (Not (Me.GetLocationByPhoneCompletedEvent) Is Nothing) Then
                Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
                RaiseEvent GetLocationByPhoneCompleted(Me, New GetLocationByPhoneCompletedEventArgs(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.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://charter.com/enterprise/VeriSignServices"),  _
     System.Xml.Serialization.XmlRootAttribute([Namespace]:="http://charter.com/enterprise/VeriSignServices", IsNullable:=false)>  _
    Partial Public Class CharterHeaderInfo
        Inherits System.Web.Services.Protocols.SoapHeader
        
        Private tranIdField As System.Guid
        
        Private logOnlyField As Boolean
        
        Private dataSourceOverrideField As DataSourceOverrideType
        
        Private anyAttrField() As System.Xml.XmlAttribute
        
        '''<remarks/>
        Public Property TranId() As System.Guid
            Get
                Return Me.tranIdField
            End Get
            Set
                Me.tranIdField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property LogOnly() As Boolean
            Get
                Return Me.logOnlyField
            End Get
            Set
                Me.logOnlyField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property DataSourceOverride() As DataSourceOverrideType
            Get
                Return Me.dataSourceOverrideField
            End Get
            Set
                Me.dataSourceOverrideField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlAnyAttributeAttribute()>  _
        Public Property AnyAttr() As System.Xml.XmlAttribute()
            Get
                Return Me.anyAttrField
            End Get
            Set
                Me.anyAttrField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://charter.com/enterprise/VeriSignServices")>  _
    Public Enum DataSourceOverrideType
        
        '''<remarks/>
        NoOverride
        
        '''<remarks/>
        OverrideToDatabase
        
        '''<remarks/>
        OverrideToRemoteSystem
    End Enum
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://charter.com/enterprise/VeriSignServices")>  _
    Partial Public Class LocationDetails
        
        Private address1Field As String
        
        Private address2Field As String
        
        Private address3Field As String
        
        Private address4Field As String
        
        Private cityField As String
        
        Private countyField As String
        
        Private stateField As String
        
        Private zipField As String
        
        '''<remarks/>
        Public Property Address1() As String
            Get
                Return Me.address1Field
            End Get
            Set
                Me.address1Field = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Address2() As String
            Get
                Return Me.address2Field
            End Get
            Set
                Me.address2Field = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Address3() As String
            Get
                Return Me.address3Field
            End Get
            Set
                Me.address3Field = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Address4() As String
            Get
                Return Me.address4Field
            End Get
            Set
                Me.address4Field = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property City() As String
            Get
                Return Me.cityField
            End Get
            Set
                Me.cityField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property County() As String
            Get
                Return Me.countyField
            End Get
            Set
                Me.countyField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property State() As String
            Get
                Return Me.stateField
            End Get
            Set
                Me.stateField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Zip() As String
            Get
                Return Me.zipField
            End Get
            Set
                Me.zipField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://charter.com/enterprise/VeriSignServices")>  _
    Partial Public Class CsgStatusMessage
        
        Private codeField As String
        
        Private messageField As String
        
        '''<remarks/>
        Public Property Code() As String
            Get
                Return Me.codeField
            End Get
            Set
                Me.codeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Message() As String
            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.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://charter.com/enterprise/VeriSignServices")>  _
    Partial Public Class ResultExceptionInfo
        
        Private typeField As String
        
        Private messageField As String
        
        Private stackTraceField As String
        
        Private codeField As String
        
        '''<remarks/>
        Public Property Type() As String
            Get
                Return Me.typeField
            End Get
            Set
                Me.typeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Message() As String
            Get
                Return Me.messageField
            End Get
            Set
                Me.messageField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property StackTrace() As String
            Get
                Return Me.stackTraceField
            End Get
            Set
                Me.stackTraceField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Code() As String
            Get
                Return Me.codeField
            End Get
            Set
                Me.codeField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://charter.com/enterprise/VeriSignServices")>  _
    Partial Public Class Result
        
        Private returnCodeField As ResultReturnCode
        
        Private referenceCodeField As String
        
        Private typeField As ResultType
        
        Private descriptionField As String
        
        Private dateTimeField As Date
        
        Private sourceField As String
        
        Private serverField As String
        
        Private exceptionInfoField As ResultExceptionInfo
        
        Private statusMessagesField() As CsgStatusMessage
        
        '''<remarks/>
        Public Property ReturnCode() As ResultReturnCode
            Get
                Return Me.returnCodeField
            End Get
            Set
                Me.returnCodeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property ReferenceCode() As String
            Get
                Return Me.referenceCodeField
            End Get
            Set
                Me.referenceCodeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Type() As ResultType
            Get
                Return Me.typeField
            End Get
            Set
                Me.typeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Description() As String
            Get
                Return Me.descriptionField
            End Get
            Set
                Me.descriptionField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property DateTime() As Date
            Get
                Return Me.dateTimeField
            End Get
            Set
                Me.dateTimeField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Source() As String
            Get
                Return Me.sourceField
            End Get
            Set
                Me.sourceField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Server() As String
            Get
                Return Me.serverField
            End Get
            Set
                Me.serverField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property ExceptionInfo() As ResultExceptionInfo
            Get
                Return Me.exceptionInfoField
            End Get
            Set
                Me.exceptionInfoField = value
            End Set
        End Property
        
        '''<remarks/>
        <System.Xml.Serialization.XmlElementAttribute("StatusMessages")>  _
        Public Property StatusMessages() As CsgStatusMessage()
            Get
                Return Me.statusMessagesField
            End Get
            Set
                Me.statusMessagesField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://charter.com/enterprise/VeriSignServices")>  _
    Public Enum ResultReturnCode
        
        '''<remarks/>
        Success
        
        '''<remarks/>
        NoDataFound
        
        '''<remarks/>
        InvalidXml
        
        '''<remarks/>
        BusinessRuleNotMet
        
        '''<remarks/>
        Exception
        
        '''<remarks/>
        DatabaseError
    End Enum
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://charter.com/enterprise/VeriSignServices")>  _
    Public Enum ResultType
        
        '''<remarks/>
        Informational
        
        '''<remarks/>
        [Error]
    End Enum
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute(AnonymousType:=true, [Namespace]:="http://charter.com/enterprise/VeriSignServices")>  _
    Partial Public Class GetLocationByPhoneRequest
        
        Private telephoneField As String
        
        '''<remarks/>
        Public Property Telephone() As String
            Get
                Return Me.telephoneField
            End Get
            Set
                Me.telephoneField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.233"),  _
     System.SerializableAttribute(),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code"),  _
     System.Xml.Serialization.XmlTypeAttribute(AnonymousType:=true, [Namespace]:="http://charter.com/enterprise/VeriSignServices")>  _
    Partial Public Class GetLocationByPhoneResponse
        
        Private resultField As Result
        
        Private telephoneField As String
        
        Private locationDetailsField As LocationDetails
        
        '''<remarks/>
        Public Property Result() As Result
            Get
                Return Me.resultField
            End Get
            Set
                Me.resultField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property Telephone() As String
            Get
                Return Me.telephoneField
            End Get
            Set
                Me.telephoneField = value
            End Set
        End Property
        
        '''<remarks/>
        Public Property LocationDetails() As LocationDetails
            Get
                Return Me.locationDetailsField
            End Get
            Set
                Me.locationDetailsField = value
            End Set
        End Property
    End Class
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1")>  _
    Public Delegate Sub GetLocationByPhoneCompletedEventHandler(ByVal sender As Object, ByVal e As GetLocationByPhoneCompletedEventArgs)
    
    '''<remarks/>
    <System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.0.30319.1"),  _
     System.Diagnostics.DebuggerStepThroughAttribute(),  _
     System.ComponentModel.DesignerCategoryAttribute("code")>  _
    Partial Public Class GetLocationByPhoneCompletedEventArgs
        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 GetLocationByPhoneResponse
            Get
                Me.RaiseExceptionIfNecessary
                Return CType(Me.results(0),GetLocationByPhoneResponse)
            End Get
        End Property
    End Class
End Namespace
