J
Jukka Kenttälä
Hi!
I have a problem with web service that uses private
variables and stores them to context.session. I can call
it from .NET application using cookies or cookieless
session and it works fine. The problem is that when I try
to call it from vb6 client using SOAP I get application-
defined error. The web service is simple, sample code
below:
Private prNumber As Integer
<WebMethod(EnableSession:=True)> Public Function Plus
(ByVal vNumberToAdd As Integer) As String
If Context.Session("Number") Is Nothing Then
prNumber = 0
Else
prNumber = Context.Session("Number")
End If
prNumber += vNumberToAdd
Context.Session("Number") = prNumber
Plus = prNumber
End Function
How can I use this web service from vb6?
Best Regards
Johanna Turku
I have a problem with web service that uses private
variables and stores them to context.session. I can call
it from .NET application using cookies or cookieless
session and it works fine. The problem is that when I try
to call it from vb6 client using SOAP I get application-
defined error. The web service is simple, sample code
below:
Private prNumber As Integer
<WebMethod(EnableSession:=True)> Public Function Plus
(ByVal vNumberToAdd As Integer) As String
If Context.Session("Number") Is Nothing Then
prNumber = 0
Else
prNumber = Context.Session("Number")
End If
prNumber += vNumberToAdd
Context.Session("Number") = prNumber
Plus = prNumber
End Function
How can I use this web service from vb6?
Best Regards
Johanna Turku