Here's a sample serviceModel configuration section for the server. You can place the section in the exe's config file, or the app.config embedded in the AppHelper project. The ideaBlade.v4 configuration section is still needed, although the objectServer element will be ignored. The serviceModel and ideaBlade.v4 sections do not need to be in the same config file. So, for example, you could place the serviceModel section in a ServerConsole.v4.exe.config file, and leave the ideaBlade.v4 section in the AppHelper project.
<?xml version="1.0" encoding="utf-8"?>
<!-- Sample server-side configuration, showing defaults --> <configuration>
<system.serviceModel> <services> <service name="EntityService"> <endpoint address=" http://localhost:9009/EntityService - http://localhost:9009/EntityService " binding="customBinding" bindingConfiguration="compressedBinaryBinding" contract="IdeaBlade.EntityModel.v4.IEntityServiceContract" /> </service> <!-- One EntityServer service per data source extension --> <service name="EntityServer"> <endpoint address=" http://localhost:9009/EntityServer - http://localhost:9009/EntityServer " binding="customBinding" bindingConfiguration="compressedBinaryBinding" contract="IdeaBlade.EntityModel.v4.IEntityServerContract" /> </service> </services>
<bindings> <customBinding> <binding name="compressedBinaryBinding"> <gzipMessageEncoding> <readerQuotas maxArrayLength="2147483647" maxDepth="2147483647" /> </gzipMessageEncoding> <httpTransport maxReceivedMessageSize="2147483647"/> </binding> </customBinding> </bindings>
<extensions> <bindingElementExtensions> <add name="gzipMessageEncoding" type="IdeaBlade.Util.Wcf.Extensions.v4.GZipMessageEncodingElement, IdeaBlade.Util.v4"/> </bindingElementExtensions> </extensions> </system.serviceModel>
</configuration>
|