[operationcontract] [webget(uritemplate = "getawardlist?count={count}", responseformat = webmessageformat.json, bodystyle = webmessagebodystyle.wrapped)] list<discount_awardmodel> getawardlist(out int count); through browser call "http://localhost:50590/wcfservice/product/publicproductservice.svc/getawardlist? count=1"
the error:
“/”server error in application. operation "getawardlist" in convention "ipublicproductservice" should have uritemplate, has name "count", operation not have input parameter name.
description: exception occurs during execution of current web request. please check stack trace information understand details of source of error , code causes error.
exception details: system.invalidoperationexception: agreed name "count" parameters uritemplate ipublicproductservice operating getawardlist ", operation , not name of input parameters.
source error:
an exception generated during execution of current web request. can use following exception stack trace information determine cause , location of exception.
stack trace:
invalidoperationexception: agreed name "count" parameters uritemplate ipublicproductservice operating getawardlist ", operation , not name of input parameters.
Comments
Post a Comment