Answered by:
Is wsHttpBinding supports Restful services in WCF ?

Question
-
Hi,
One my architect in our company said that we can create Restful services using wsHttpBinding. Up to my knowledge i know only webHttpBinding is supports Restful services in WCF.
Is my architect was correct ? if yes,I need to know is any other process to make Restful services using wsHttpBinding.
Thanks in advance.........
Monday, October 18, 2010 10:52 AM
Answers
-
Hi Pavan,
You Cannot use wsHttpBinding directly to create Restful services, you need to use WebHttpBinding.
Thanks,
Siva
Please mark as answer, if it solves your problem or Vote as helpful if you find helpful- Proposed as answer by Carlos Figueira Monday, October 18, 2010 2:00 PM
- Marked as answer by Allen Chen - MSFT Monday, October 25, 2010 9:36 AM
Monday, October 18, 2010 11:28 AM -
In addition to Siva's reply, you can also have a service with more than one endpoint, one with wsHttpBinding (if it's required) for SOAP clients, and one with webHttpBinding (for REST clients).
- Marked as answer by Allen Chen - MSFT Monday, October 25, 2010 9:36 AM
Monday, October 18, 2010 2:01 PM
All replies
-
Hi Pavan,
You Cannot use wsHttpBinding directly to create Restful services, you need to use WebHttpBinding.
Thanks,
Siva
Please mark as answer, if it solves your problem or Vote as helpful if you find helpful- Proposed as answer by Carlos Figueira Monday, October 18, 2010 2:00 PM
- Marked as answer by Allen Chen - MSFT Monday, October 25, 2010 9:36 AM
Monday, October 18, 2010 11:28 AM -
In addition to Siva's reply, you can also have a service with more than one endpoint, one with wsHttpBinding (if it's required) for SOAP clients, and one with webHttpBinding (for REST clients).
- Marked as answer by Allen Chen - MSFT Monday, October 25, 2010 9:36 AM
Monday, October 18, 2010 2:01 PM