I have the following simple WCF library which was developed on Visual Studio 2008.
When running WCFTestClinet/javascript(with SOAP) that calls this wcf service I get false value for the following scenario:
1. GetNumber --> output: "Your number is 0"
2. SetNumber --> No output
3. GetNumber --> output: "Your number is 0" instead of output: "Your number is 8" !!!
Can anyone explain why is this happening and how can I solve it?
Thanks
public class Service1 : IService1
    {
        private int Number;
        public string GetData(int value)
        {
            return string.Format("You entered: {0}", value);
        }
        public CompositeType GetDataUsingDataContract(CompositeType composite)
        {
            if (composite.BoolValue)
            {
                composite.StringValue += "Suffix";
            }
            return composite;
        }
        public string GetNumber()
        {
            return string.Format("Your number is : {0}", Number);
        }
        public void SetNumber()
        {
            Number = 8;
        }
    }