I have a very simple web service:
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Services; namespace WebService1 {
when I run this project that opens my browser showing me the service: 
in another solution: (console application)
I can connect to this service by adding the link:


then click the add web link button: 
Finally, I type in the URL of the newly created service: 
Now I can create an instance of the object from the Service1 class from my console application as:
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication36 { class Program { static void Main(string[] args) { localhost.Service1 service = new localhost.Service1();
why doesn't myInt increase every time I call the boostCounter method? every time I call this method, it returns 1.
source share