Link to home
Start Free TrialLog in
Avatar of qas
qas

asked on

Are webservices persistent ?

Hi :)

I'd like to know if there is a way to make a .NET WebService persistent.  Maybe they already are though, I'm not a VS expert here :)

Here is an example of what I need.

' *** '

Private x As Integer = 0

<WebMethod()> Public Function GetNext() As Integer
   x = x + 1
   Return x
End Function

' *** '

I want to ba able to call the GetNext method a couple of times and have 1, 2, 3, 4... as results.  Is there any way I can do that ?  

Thanks :)
Steve
ASKER CERTIFIED SOLUTION
Avatar of imperial_p79
imperial_p79

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial