創建WCF RESTful服務時,部分配置包括創建服務端點。喜歡的東西下面webhttpbinding endpoint中的合約是什麼?
<service name="MyService" behaviorConfiguration="serviceBehavior">
<endpoint address="" binding="webHttpBinding" bindingConfiguration="UsernameWithTransport" contract="IMyService" behaviorConfiguration="web"></endpoint>
</service>
我的問題是,究竟什麼是contract
規定的?它是否向試圖訪問它的瀏覽器提供某種信息?
通讀https://msdn.microsoft.com/en-us/library/aa702732(v=vs.110).aspx – Rajesh