Thursday, 6 September 2012

BasicHttpBinding(Percall),WsHttpBinding(Persession)?

Yes, as we seen before article tells  BasicHttpBinding(Percall),WsHttpBinding(Persession).

this is another demo of same type.


namespace WcfServiceTraceDemo
    [ServiceContract]
    public interface IService1
    {
        [OperationContract]
        int increment(string str);   
    }
}

namespace WcfServiceTraceDemo
{
  
    public class Service1 : IService1
    {
    
        private int Count;

        public int increment(string str)
        {
            Count++;
            return Count;
        
        }     
    }
}



At Client side


No comments:

Post a Comment