none
WCF UriTemplate Overload ? RRS feed

  • Question

  • I am getting exception when i do uritemplate overload like below? Thanks a lot for your suggestion in advance !

    [ServiceContract]
    public interface IService
    {
        [OperationContract]
        [WebGet(UriTemplate = "GetContract?part1={part1}&part2={part2}")]
        string GetSample(string part1, string part2);

       [OperationContract]
        [WebGet(UriTemplate = "GetContract?part1={part1}&part2={part2}&part3={part3}")]
        string GetSample(string part1, string part2,string part3);
    }


    http://www.selvaonline.com - Live a Happy & Balanced Life

    Tuesday, April 2, 2013 2:49 AM

Answers