Click here to Skip to main content
15,910,981 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I want expose existing WCF service which is hosted. now i want expose this service as REST

can anybody help on this how to do.

Thnx
dismak
Posted

1 solution

you cannot do this directly. actually, they have different concepts behind. wcf is service-oriented (like method calls). but, restful service is object-oriented (changing state of objects). before converting it, you have to find out what objects your service will have, then specify how to change their states by using http methods (get, put, etc).
here is msdn entry for restful service design[^].
 
Share this answer
 
Comments
Manas Bhardwaj 14-Apr-14 7:30am    
Right +5!
DipsMak 14-Apr-14 8:33am    
thnx for idea..i have methods in that WCF service..so can i consume that service and call each and every methods and expose as a REST
Vedat Ozan Oner 14-Apr-14 8:57am    
yes, it is possible. but you have to be careful with your design. if you're stuck somewhere, that indicates a design issue.

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