Compare commits
2 Commits
6b2c0b696b
...
e71d9d7668
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e71d9d7668 | ||
|
|
36937abe4c |
@ -155,6 +155,8 @@ Public Class Winline
|
|||||||
|
|
||||||
oURI &= $"?{oQuery}"
|
oURI &= $"?{oQuery}"
|
||||||
|
|
||||||
|
_Logger.Info("WebService Request: {0}", oURI)
|
||||||
|
|
||||||
Dim oRequest As HttpWebRequest = WebRequest.Create(oURI)
|
Dim oRequest As HttpWebRequest = WebRequest.Create(oURI)
|
||||||
Dim oResponse As HttpWebResponse = DirectCast(oRequest.GetResponse(), HttpWebResponse)
|
Dim oResponse As HttpWebResponse = DirectCast(oRequest.GetResponse(), HttpWebResponse)
|
||||||
Dim oXmlResponse As String
|
Dim oXmlResponse As String
|
||||||
@ -163,6 +165,8 @@ Public Class Winline
|
|||||||
oXmlResponse = oReader.ReadToEnd()
|
oXmlResponse = oReader.ReadToEnd()
|
||||||
End Using
|
End Using
|
||||||
|
|
||||||
|
_Logger.Info("WebService Response: {0}", oXmlResponse)
|
||||||
|
|
||||||
Dim oDocument As New XmlDocument
|
Dim oDocument As New XmlDocument
|
||||||
oDocument.LoadXml(oXmlResponse)
|
oDocument.LoadXml(oXmlResponse)
|
||||||
oDocument.Save(Console.Out)
|
oDocument.Save(Console.Out)
|
||||||
|
|||||||
@ -4,8 +4,16 @@
|
|||||||
|
|
||||||
Private Sub frmMain_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
Private Sub frmMain_Load(sender As Object, e As EventArgs) Handles MyBase.Load
|
||||||
Try
|
Try
|
||||||
My.Application.LogConfig = New LogConfig(LogPath:=LogConfig.PathType.AppData, CompanyName:="Digital Data", ProductName:="WinLineProductNumberGenerator")
|
My.Application.LogConfig = New LogConfig(
|
||||||
My.Application.ConfigManager = New ConfigManager(Of Config)(My.Application.LogConfig, Application.UserAppDataPath)
|
LogPath:=LogConfig.PathType.CustomPath,
|
||||||
|
CustomLogPath:=Application.StartupPath,
|
||||||
|
CompanyName:="Digital Data",
|
||||||
|
ProductName:="WinLineProductNumberGenerator"
|
||||||
|
)
|
||||||
|
My.Application.ConfigManager = New ConfigManager(Of Config)(
|
||||||
|
My.Application.LogConfig,
|
||||||
|
Application.StartupPath
|
||||||
|
)
|
||||||
_Logger = My.Application.LogConfig.GetLogger()
|
_Logger = My.Application.LogConfig.GetLogger()
|
||||||
Catch ex As Exception
|
Catch ex As Exception
|
||||||
MsgBox("Fehler beim Initialisieren (Logging und Config):" & vbNewLine & ex.Message, MsgBoxStyle.Critical, Text)
|
MsgBox("Fehler beim Initialisieren (Logging und Config):" & vbNewLine & ex.Message, MsgBoxStyle.Critical, Text)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user