473,405 Members | 2,272 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

making a SOAP connection persist

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
Mar 2 '06 #1
2 1572
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.)


Mar 3 '06 #2
cj
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:

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

Mar 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Mark Carter | last post by:
I had a play with XML-RPC the other day, and it seemed really simple to use; which really made an impression on me. But you can't make data persist on the server (not without rolling your own...
1
by: The Doctor | last post by:
Dear all, I am currently trying to re-implement an existing connection-oriented locking mechanism that was originally written in C. The company that supplied us the original system has recently...
4
by: cj | last post by:
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...
2
by: furrypop | last post by:
Hi, I'm trying to get the Perl SOAP::Lite examples to work on a Windows PC, running Apache 2.2.4. Apache is definitely serving CGI scripts, as I've tested a dummy Hello World thing. I'm also...
3
by: Enda Manni | last post by:
Hi, I have a gSoap Web Service written using C++, it uses SOAP username and password authentication. I also have a C# form client consuming the web service, all this was working fine until...
10
by: jimjim | last post by:
HI, We have shifted our database from sqlserver2003 to sqlserver2005. 1. connection strings stored in web.config <!-- Machine name to connection string keys --> <add key="*777*"...
4
by: gcharbon | last post by:
Hi community, I have a problem with a Soap client written in php. I have a local server (coded in c and a client in c too, it works fine), but i want to test client in php, and i have an error...
0
by: vigneshrao | last post by:
Hi, I have been working on a script that loops through multiple records and sends data (one record per call) to a WS. I am supposed to make a new call for each record before sending the data....
0
by: mayurshah28 | last post by:
Hi everyone, im developing one application for banking. there i have stucked wit one prob. now prob is tat im not able to access multiple tables at a time through vb. my coding is as below Dim...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.