c# - UriTemplateTable does not support multiple templates that have equivalent path as template -


i can't seem make wcf happy. have 2 methods in service, here uri , method sig:

    [webget(uritemplate = "/?memberid={memberid}&count={count}&pagenumber={pagenumber}&sortorder={sortorder}&event_id={event_id}&ticketids={ticketids}")]     public inventoryresponse get(string memberid, string count, string pagenumber, inventorysortorder sortorder, string event_id, string ticketids)       [webget(uritemplate = "/?memberid={mmberid}&count={count}&pagenumber={pagenumber}&sortorder={sortorder}&event_id={event_id}&ticketids={ticketids}&istestcall=1")]     public virtual inventoryresponse gettest(string memberid, string count, string pagenumber, inventorysortorder sortorder, string event_id, string ticketids, bool istestcall) 

seems though on second uri, i added "&istestcall=1" end, "&istestcall={istestcall}" no matter still error, though feel i've differentiated uri:

uritemplatetable not support multiple templates have equivalent path template '/?memberid={memberid}&count={count}&pagenumber={pagenumber}&sortorder={sortorder}&event_id={event_id}&ticketids={ticketids}' have different query strings, query strings cannot disambiguated via literal values. see documentation uritemplatetable more detail.

i'm not wcf guru, error means cannot have template same uri ("/" in case) different parameters.

maybe can go 1 function , optional parameter?


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -