SOAP | REST |
---|---|
<system.serviceModel>
<services> <service behaviorConfiguration="ServiceBehavior"> <endpoint address="" binding="wsHttpBinding"
contract=...>... </endpoint> ... </service> </services> ... </system.serviceModel> |
<system.serviceModel>
<services> <service behaviorConfiguration="ServiceBehavior"> <endpoint address=""
binding="webHttpBinding"
contract=...>behaviorConfiguration="RESTBehavior" ... </endpoint> ... </service> </services> ... <behaviors> ...
<endpointBehaviors>
</behaviors><behavior name="RESTBehavior"> <webHttp/> ... </behavior> </endpointBehaviors> ... </system.serviceModel> |
Tuesday, May 19, 2009
SOAP and REST-based WCF basic settings in Web.config
This only serves my own notes because I always forget it when I switch one type of Web service to another.
Labels:
WCF
Subscribe to:
Posts (Atom)