locked
Is wsHttpBinding supports Restful services in WCF ? RRS feed

  • 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
    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).
    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
    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).
    Monday, October 18, 2010 2:01 PM