Click here to Skip to main content
15,907,225 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
SQL
[OperationContract]
[WebGet(UriTemplate="/RolesSelectbyRoleName/{Name}",RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json,BodyStyle = WebMessageBodyStyle.Bare)]

Person GetaPerson(string Name);

I want to know what is RolesSelectbyRoleName in the above code ?Is it the name of a  stored procedure or tablename?
Posted
Comments
Oleksandr Kulchytskyi 11-Aug-12 13:25pm    
I can recommend to use use WebApi , instead of old-palain WCF Rest.
Try to use this brand-new framework , and i think you will be astohished with it.
You can set differ message formatters the in few lines of code, set necessary routing , etc.

1 solution

It gets and sets the Uniform Resource Identifier (URI) template for the service operation.
Fore more information see :
http://msdn.microsoft.com/en-us/library/system.servicemodel.web.webgetattribute.uritemplate.aspx[^]
 
Share this answer
 
Comments
cutie1 11-Aug-12 5:59am    
Thanks now I got the point that it is neither a stored procedure nor a table name.But if I want to use SQL stored procedure to get the data from database by giving any parameter (USERID) then how should the code be implemented?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900