Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0"?>
- <configuration>
- <system.web>
- <compilation debug="true" targetFramework="4.5" />
- <httpRuntime targetFramework="4.5" />
- </system.web>
- <system.serviceModel>
- <services>
- <service name="<YOUR_NAMESPACE>.<SERVICENAME>">
- <endpoint address="" binding="webHttpBinding" contract="<YOUR_NAMESPACE>.<INTERFACE_SERVICENAME>" bindingConfiguration="RestServiceBindingConfig" behaviorConfiguration="RestServiceEndpointBehavior" />
- </service>
- </services>
- <bindings>
- <webHttpBinding>
- <binding name="RestServiceBindingConfig">
- <security mode="None"></security>
- </binding>
- </webHttpBinding>
- </bindings>
- <behaviors>
- <endpointBehaviors>
- <behavior name="RestServiceEndpointBehavior">
- <webHttp helpEnabled="true" defaultOutgoingResponseFormat="Xml" automaticFormatSelectionEnabled="false" />
- </behavior>
- </endpointBehaviors>
- <serviceBehaviors>
- <behavior name="">
- <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
- <serviceDebug includeExceptionDetailInFaults="false" />
- </behavior>
- </serviceBehaviors>
- </behaviors>
- <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
- </system.serviceModel>
- </configuration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement