<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服务