SanSYS

http://www.sansys.net/2014/07/wcf-enablewebscript.html

Jul 13th, 2014
6,719
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.01 KB | None | 0 0
  1. <system.serviceModel>
  2.   <behaviors>
  3.     <endpointBehaviors>
  4.       <behavior name="NewBehavior0">
  5.         <enableWebScript />
  6.         <webHttp automaticFormatSelectionEnabled="true" faultExceptionEnabled="true" defaultBodyStyle="Wrapped" defaultOutgoingResponseFormat="Json" />
  7.       </behavior>
  8.     </endpointBehaviors>
  9.     <serviceBehaviors>
  10.       <behavior name="">
  11.         <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
  12.         <serviceDebug includeExceptionDetailInFaults="true" />
  13.       </behavior>
  14.     </serviceBehaviors>
  15.   </behaviors>
  16.   <protocolMapping>
  17.       <add binding="basicHttpsBinding" scheme="https" />
  18.   </protocolMapping>    
  19.   <serviceHostingEnvironment aspNetCompatibilityEnabled="false" multipleSiteBindingsEnabled="true" />
  20.  
  21.   <services>
  22.     <service name="WcfAndJS.Service1">
  23.       <endpoint address="" binding="webHttpBinding" contract="WcfAndJS.IService1" behaviorConfiguration="NewBehavior0">
  24.       </endpoint>
  25.     </service>
  26.   </services>
  27. </system.serviceModel>
Advertisement
Add Comment
Please, Sign In to add comment