237 lines
9.9 KiB
VB.net
237 lines
9.9 KiB
VB.net
'------------------------------------------------------------------------------
|
|
' <auto-generated>
|
|
' Dieser Code wurde von einem Tool generiert.
|
|
' Laufzeitversion:4.0.30319.42000
|
|
'
|
|
' Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
|
' der Code erneut generiert wird.
|
|
' </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
|
|
|
|
'
|
|
'Der Quellcode wurde automatisch mit Microsoft.VSDesigner generiert. Version 4.0.30319.42000.
|
|
'
|
|
Namespace at.gv.bmf.finanzonline
|
|
|
|
'''<remarks/>
|
|
<System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0"), _
|
|
System.Diagnostics.DebuggerStepThroughAttribute(), _
|
|
System.ComponentModel.DesignerCategoryAttribute("code"), _
|
|
System.Web.Services.WebServiceBindingAttribute(Name:="uidAbfrageServiceBinding", [Namespace]:="https://finanzonline.bmf.gv.at/fon/ws/uidAbfrage")> _
|
|
Partial Public Class uidAbfrageService
|
|
Inherits System.Web.Services.Protocols.SoapHttpClientProtocol
|
|
|
|
Private uidAbfrageOperationCompleted As System.Threading.SendOrPostCallback
|
|
|
|
Private useDefaultCredentialsSetExplicitly As Boolean
|
|
|
|
'''<remarks/>
|
|
Public Sub New()
|
|
MyBase.New
|
|
Me.Url = Global.VERAG_PROG_ALLGEMEIN.My.MySettings.Default.VERAG_PROG_ALLGEMEIN_at_gv_bmf_finanzonline_uidAbfrageService
|
|
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 uidAbfrageCompleted As uidAbfrageCompletedEventHandler
|
|
|
|
'''<remarks/>
|
|
<System.Web.Services.Protocols.SoapDocumentMethodAttribute("uidAbfrage", RequestElementName:="uidAbfrageServiceRequest", RequestNamespace:="https://finanzonline.bmf.gv.at/fon/ws/uidAbfrage", ResponseElementName:="uidAbfrageServiceResponse", ResponseNamespace:="https://finanzonline.bmf.gv.at/fon/ws/uidAbfrage", Use:=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)> _
|
|
Public Function uidAbfrage(ByVal tid As String, ByVal benid As String, ByVal id As String, ByVal uid_tn As String, ByVal uid As String, ByVal stufe As uidAbfrageServiceRequestStufe, ByRef msg As String, ByRef name As String, ByRef adrz1 As String, ByRef adrz2 As String, ByRef adrz3 As String, ByRef adrz4 As String, ByRef adrz5 As String, ByRef adrz6 As String) As <System.Xml.Serialization.XmlElementAttribute("rc")> Integer
|
|
Dim results() As Object = Me.Invoke("uidAbfrage", New Object() {tid, benid, id, uid_tn, uid, stufe})
|
|
msg = CType(results(1),String)
|
|
name = CType(results(2),String)
|
|
adrz1 = CType(results(3),String)
|
|
adrz2 = CType(results(4),String)
|
|
adrz3 = CType(results(5),String)
|
|
adrz4 = CType(results(6),String)
|
|
adrz5 = CType(results(7),String)
|
|
adrz6 = CType(results(8),String)
|
|
Return CType(results(0),Integer)
|
|
End Function
|
|
|
|
'''<remarks/>
|
|
Public Overloads Sub uidAbfrageAsync(ByVal tid As String, ByVal benid As String, ByVal id As String, ByVal uid_tn As String, ByVal uid As String, ByVal stufe As uidAbfrageServiceRequestStufe)
|
|
Me.uidAbfrageAsync(tid, benid, id, uid_tn, uid, stufe, Nothing)
|
|
End Sub
|
|
|
|
'''<remarks/>
|
|
Public Overloads Sub uidAbfrageAsync(ByVal tid As String, ByVal benid As String, ByVal id As String, ByVal uid_tn As String, ByVal uid As String, ByVal stufe As uidAbfrageServiceRequestStufe, ByVal userState As Object)
|
|
If (Me.uidAbfrageOperationCompleted Is Nothing) Then
|
|
Me.uidAbfrageOperationCompleted = AddressOf Me.OnuidAbfrageOperationCompleted
|
|
End If
|
|
Me.InvokeAsync("uidAbfrage", New Object() {tid, benid, id, uid_tn, uid, stufe}, Me.uidAbfrageOperationCompleted, userState)
|
|
End Sub
|
|
|
|
Private Sub OnuidAbfrageOperationCompleted(ByVal arg As Object)
|
|
If (Not (Me.uidAbfrageCompletedEvent) Is Nothing) Then
|
|
Dim invokeArgs As System.Web.Services.Protocols.InvokeCompletedEventArgs = CType(arg,System.Web.Services.Protocols.InvokeCompletedEventArgs)
|
|
RaiseEvent uidAbfrageCompleted(Me, New uidAbfrageCompletedEventArgs(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.8.9037.0"), _
|
|
System.SerializableAttribute(), _
|
|
System.Xml.Serialization.XmlTypeAttribute(AnonymousType:=true, [Namespace]:="https://finanzonline.bmf.gv.at/fon/ws/uidAbfrage")> _
|
|
Public Enum uidAbfrageServiceRequestStufe
|
|
|
|
'''<remarks/>
|
|
<System.Xml.Serialization.XmlEnumAttribute("1")> _
|
|
Item1
|
|
|
|
'''<remarks/>
|
|
<System.Xml.Serialization.XmlEnumAttribute("2")> _
|
|
Item2
|
|
End Enum
|
|
|
|
'''<remarks/>
|
|
<System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0")> _
|
|
Public Delegate Sub uidAbfrageCompletedEventHandler(ByVal sender As Object, ByVal e As uidAbfrageCompletedEventArgs)
|
|
|
|
'''<remarks/>
|
|
<System.CodeDom.Compiler.GeneratedCodeAttribute("System.Web.Services", "4.8.9037.0"), _
|
|
System.Diagnostics.DebuggerStepThroughAttribute(), _
|
|
System.ComponentModel.DesignerCategoryAttribute("code")> _
|
|
Partial Public Class uidAbfrageCompletedEventArgs
|
|
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 Integer
|
|
Get
|
|
Me.RaiseExceptionIfNecessary
|
|
Return CType(Me.results(0),Integer)
|
|
End Get
|
|
End Property
|
|
|
|
'''<remarks/>
|
|
Public ReadOnly Property msg() As String
|
|
Get
|
|
Me.RaiseExceptionIfNecessary
|
|
Return CType(Me.results(1),String)
|
|
End Get
|
|
End Property
|
|
|
|
'''<remarks/>
|
|
Public ReadOnly Property name() As String
|
|
Get
|
|
Me.RaiseExceptionIfNecessary
|
|
Return CType(Me.results(2),String)
|
|
End Get
|
|
End Property
|
|
|
|
'''<remarks/>
|
|
Public ReadOnly Property adrz1() As String
|
|
Get
|
|
Me.RaiseExceptionIfNecessary
|
|
Return CType(Me.results(3),String)
|
|
End Get
|
|
End Property
|
|
|
|
'''<remarks/>
|
|
Public ReadOnly Property adrz2() As String
|
|
Get
|
|
Me.RaiseExceptionIfNecessary
|
|
Return CType(Me.results(4),String)
|
|
End Get
|
|
End Property
|
|
|
|
'''<remarks/>
|
|
Public ReadOnly Property adrz3() As String
|
|
Get
|
|
Me.RaiseExceptionIfNecessary
|
|
Return CType(Me.results(5),String)
|
|
End Get
|
|
End Property
|
|
|
|
'''<remarks/>
|
|
Public ReadOnly Property adrz4() As String
|
|
Get
|
|
Me.RaiseExceptionIfNecessary
|
|
Return CType(Me.results(6),String)
|
|
End Get
|
|
End Property
|
|
|
|
'''<remarks/>
|
|
Public ReadOnly Property adrz5() As String
|
|
Get
|
|
Me.RaiseExceptionIfNecessary
|
|
Return CType(Me.results(7),String)
|
|
End Get
|
|
End Property
|
|
|
|
'''<remarks/>
|
|
Public ReadOnly Property adrz6() As String
|
|
Get
|
|
Me.RaiseExceptionIfNecessary
|
|
Return CType(Me.results(8),String)
|
|
End Get
|
|
End Property
|
|
End Class
|
|
End Namespace
|