Free cookie consent management tool by TermsFeed Policy Generator

source: branches/GeneralizedQAP/HeuristicLab.Services.Hello/3.3/Web.config @ 6794

Last change on this file since 6794 was 6794, checked in by abeham, 13 years ago

#1619

  • Updated Hello (test) service, tested db publishing
File size: 2.9 KB
Line 
1<?xml version="1.0"?>
2<configuration>
3
4  <system.web>
5    <compilation debug="true" targetFramework="4.0">
6      <assemblies>
7        <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
8      </assemblies>
9    </compilation>
10  </system.web>
11 
12  <system.serviceModel>
13    <bindings>
14      <webHttpBinding> <!-- separate bindings are necessary -->
15        <binding name="jsonBinding" />
16        <binding name="xmlBinding" />
17      </webHttpBinding>
18    </bindings>
19   
20    <behaviors>
21      <serviceBehaviors>
22        <behavior>
23          <serviceMetadata httpGetEnabled="true" />
24          <serviceDebug includeExceptionDetailInFaults="true" />
25        </behavior>
26      </serviceBehaviors>
27     
28      <endpointBehaviors>
29        <behavior name="xmlEndpoint">
30          <webHttp helpEnabled="true" defaultOutgoingResponseFormat="Xml" />
31        </behavior>
32        <behavior name="jsonEndpoint"> <!-- do not specify enableWebScript or UriTemplate will not work -->
33          <webHttp helpEnabled="true" defaultOutgoingResponseFormat="Json" />
34        </behavior>
35      </endpointBehaviors>
36    </behaviors>
37   
38    <services>
39      <service name="HeuristicLab.Services.Hello.HelloService"> <!-- name needs to match the service entry in the .svc markup file -->
40        <!-- URL: HelloService.svc -->
41        <!-- URL: HelloService.svc?wsdl -->
42        <endpoint name="soap" address="" binding="basicHttpBinding" contract="HeuristicLab.Services.Hello.IHelloService" />
43        <endpoint name="mex" address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
44        <!-- URL: HelloService.svc/json/... -->
45        <!-- URL: HelloService.svc/json/help -->
46        <endpoint name="restJson" address="json" binding="webHttpBinding" bindingConfiguration="jsonBinding" contract="HeuristicLab.Services.Hello.IHelloService" behaviorConfiguration="jsonEndpoint" />
47        <!-- URL: HelloService.svc/xml/... -->
48        <!-- URL: HelloService.svc/xml/help -->
49        <endpoint name="restXml" address="xml" binding="webHttpBinding" bindingConfiguration="xmlBinding" contract="HeuristicLab.Services.Hello.IHelloService" behaviorConfiguration="xmlEndpoint" />
50      </service>
51    </services>
52   
53    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
54  </system.serviceModel>
55 
56  <system.webServer>
57    <modules runAllManagedModulesForAllRequests="true" />
58  </system.webServer>
59 
60  <connectionStrings>
61    <add name="HelloEntities" connectionString="metadata=res://*/HelloModel.csdl|res://*/HelloModel.ssdl|res://*/HelloModel.msl;provider=System.Data.SqlClient;provider connection string=&quot;Data Source=LOCALHOST\SQLEXPRESS;Initial Catalog=HelloDatabase;Integrated Security=True;MultipleActiveResultSets=True&quot;" providerName="System.Data.EntityClient" />
62  </connectionStrings>
63</configuration>
Note: See TracBrowser for help on using the repository browser.