|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
making a SOAP connection persistgotten 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 Hi Cj,
Thanks for posting. Regarding on this issue, I've also seen your another duplicated one in the microsoft.public.dotnet.framework.webservices newsgroup. I've posted my response in that thread. If you feel it convenient that we continue to discuss in that thread, please feel free to followup there. Regards, Steven Cheng Microsoft Online Support Get Secure! www.microsoft.com/security (This posting is provided "AS IS", with no warranties, and confers no rights.) Thank for the help Steven. I have it logging in and out now. I'll post
again when I have another question. Shouldn't be too long. :) cj wrote: Show quoteHide quote > > 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
Enumerate members of Administrators Group (AD)
Comparing Colors filter rows in a bound datagrid Web service question update more than only the email with asp.net membership Change Report Connection at Runtime Data Relation Update Namespace Question ... problems with URL value in webbrowser app Delimiter question |
|||||||||||||||||||||||