Soap Exceptions

DekaFlash

Well-known member
Joined
Feb 14, 2006
Messages
117
Programming Experience
1-3
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?


 
'Return' keyword ends the function call, result is returned and code lines after that is not processed.
 
Back
Top