C
cj
I've been trying all week to write a VB.net soap client. I've finally
gotten a connection after figuring out I needed to change the name of a
..xml file I was given to .wsdl and add it as a web reference in my
Windows app. When I click button2 to logout I get an error message and
the folks at the company I'm connecting to say I need to set my session
to persist. They can not tell me how to do this as they are non-MS Java
developers. Here is my code. They've verified what I'm sending in the
variable soapmesg is correct. ANY help is appreciated.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
TextBox1.Text = ""
Button1.Enabled = False
Dim proxy As New voi.voi_web_server
Dim soapmesg As String
Dim respstr As String
Dim sessionKey As String
soapmesg = "<?xml version=""1.0"" encoding=""ISO-8859-1"" ?>" & _
"<cardtel_request>" & _
"<login>******</login>" & _
"<password>******</password>" & _
"</cardtel_request>"
respstr = proxy.validate(soapmesg).ToString()
sessionKey = respstr.Substring(11)
TextBox1.Text = respstr
TextBox2.Text = sessionKey
Button1.Enabled = True
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
TextBox2.Text = ""
Button2.Enabled = False
Dim proxy As New voi.voi_web_server
Dim soapmesg As String
Dim respstr As String
soapmesg = "<?xml version=""1.0"" encoding=""ISO-8859-1"" ?>" & _
"<cardtel_request>" & _
"<stop>stop</stop>" & _
"</cardtel_request>"
respstr = proxy.validate(soapmesg).ToString()
TextBox1.Text = respstr
TextBox2.Text = ""
Button2.Enabled = True
End Sub
gotten a connection after figuring out I needed to change the name of a
..xml file I was given to .wsdl and add it as a web reference in my
Windows app. When I click button2 to logout I get an error message and
the folks at the company I'm connecting to say I need to set my session
to persist. They can not tell me how to do this as they are non-MS Java
developers. Here is my code. They've verified what I'm sending in the
variable soapmesg is correct. ANY help is appreciated.
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click
TextBox1.Text = ""
Button1.Enabled = False
Dim proxy As New voi.voi_web_server
Dim soapmesg As String
Dim respstr As String
Dim sessionKey As String
soapmesg = "<?xml version=""1.0"" encoding=""ISO-8859-1"" ?>" & _
"<cardtel_request>" & _
"<login>******</login>" & _
"<password>******</password>" & _
"</cardtel_request>"
respstr = proxy.validate(soapmesg).ToString()
sessionKey = respstr.Substring(11)
TextBox1.Text = respstr
TextBox2.Text = sessionKey
Button1.Enabled = True
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button2.Click
TextBox2.Text = ""
Button2.Enabled = False
Dim proxy As New voi.voi_web_server
Dim soapmesg As String
Dim respstr As String
soapmesg = "<?xml version=""1.0"" encoding=""ISO-8859-1"" ?>" & _
"<cardtel_request>" & _
"<stop>stop</stop>" & _
"</cardtel_request>"
respstr = proxy.validate(soapmesg).ToString()
TextBox1.Text = respstr
TextBox2.Text = ""
Button2.Enabled = True
End Sub