Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
09/17/11 18:31:34 (13 years ago)
Author:
abeham
Message:

#1619

  • Updated Hello (test) service, tested db publishing
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GeneralizedQAP/HeuristicLab.Services.Hello/3.3/Web.config

    r6780 r6794  
    33
    44  <system.web>
    5     <compilation debug="true" targetFramework="4.0" />
     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>
    610  </system.web>
     11 
    712  <system.serviceModel>
     13    <bindings>
     14      <webHttpBinding> <!-- separate bindings are necessary -->
     15        <binding name="jsonBinding" />
     16        <binding name="xmlBinding" />
     17      </webHttpBinding>
     18    </bindings>
     19   
    820    <behaviors>
    921      <serviceBehaviors>
    1022        <behavior>
    11           <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
    12           <serviceMetadata httpGetEnabled="true"/>
    13           <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
    14           <serviceDebug includeExceptionDetailInFaults="false"/>
     23          <serviceMetadata httpGetEnabled="true" />
     24          <serviceDebug includeExceptionDetailInFaults="true" />
    1525        </behavior>
    1626      </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>
    1736    </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   
    1853    <serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
    1954  </system.serviceModel>
    20  <system.webServer>
    21     <modules runAllManagedModulesForAllRequests="true"/>
     55 
     56  <system.webServer>
     57    <modules runAllManagedModulesForAllRequests="true" />
    2258  </system.webServer>
    2359 
     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>
    2463</configuration>
Note: See TracChangeset for help on using the changeset viewer.