I am trying to log soap errors and have included the following in the references.vb file created when i add a web reference.
Public Function login(ByVal request As LoginReq) As <System.Xml.Serialization.XmlElementAttribute("Result", IsNullable:=True)> LoginResp
Dim results() As Object = Me.Invoke("login", New Object() {request})
Return CType(results(0), LoginResp)
FileOpen(1, "Log-LoginLog.txt", OpenMode.Output)
Form1.TextBox1.Text = "Login " + results(0)
Print(1, Form1.TextBox1.Text)
Print(1, vbNewLine)
FileClose(1)
End Function
However it isn't creating the txt file, am I doing something wrong?
Public Function login(ByVal request As LoginReq) As <System.Xml.Serialization.XmlElementAttribute("Result", IsNullable:=True)> LoginResp
Dim results() As Object = Me.Invoke("login", New Object() {request})
Return CType(results(0), LoginResp)
FileOpen(1, "Log-LoginLog.txt", OpenMode.Output)
Form1.TextBox1.Text = "Login " + results(0)
Print(1, Form1.TextBox1.Text)
Print(1, vbNewLine)
FileClose(1)
End Function
However it isn't creating the txt file, am I doing something wrong?