wcf通过webHttpBinding方式发布rest web服务

   <system.serviceModel>
<services> <service name="ServiceUpdater.ServiceUpdate" behaviorConfiguration="http" >
<host>
<baseAddresses>
<add baseAddress="http://localhost:7777/Updater"/>
</baseAddresses>
</host>
<endpoint binding="webHttpBinding" contract="ServiceUpdater.IServiceUpdate" behaviorConfiguration="web"></endpoint>
</service>
</services> <behaviors>
<serviceBehaviors>
<behavior name="mex">
<serviceMetadata/>
</behavior>
<behavior name="http">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true" httpHelpPageEnabled="true"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="web">
<webHttp helpEnabled="true"/>
</behavior>
</endpointBehaviors>
</behaviors>
</system.serviceModel>

wcf通过webHttpBinding方式发布rest web服务

上一篇:【转】#ifdef __cplusplus+extern "C"的用法


下一篇:JavaWeb网上图书商城完整项目--day02-17.登录功能页面实现