Bindings for irServer are driven by the configuration file. Therefore, to provide support for WsHttpBinding one simply needs to modify the service configuration file (web.config in the case of IIS hosted service or InRuleRuntimeService.config in the case of Windows Service) and the client configuration file (in the case of a .NET client).
Refer to .NET Framework documentation for further information about application settings, which can be found at http://msdn.microsoft.com/en-us/library/ms731734.aspx.
Note: When running the Rule Engine Service hosted under IIS, you can only configure one protocol in the web.config file. This does not apply if the Rule Engine service runs as a Windows Service.
Service Configuration Snippet
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="Behavior_IRuleEngineService">
<serviceDebug httpHelpPageEnabled="true" />
<serviceMetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
<bindings>
<wsHttpBinding>
<binding name="WsHttpBinding_IRuleEngineService"
maxReceivedMessageSize="2147483647">
<readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" />
<security mode="None" />
</binding>
</wsHttpBinding>
</bindings>
<services>
<service name="InRule.Runtime.Service.RuleEngineService"
behaviorConfiguration="Behavior_IRuleEngineService">
<host>
<baseAddresses>
<add baseAddress="http://localhost:8083/InRuleRuleEngineService-WsHttpBinding/Service.svc" />
</baseAddresses>
</host>
<endpoint address="http://localhost:8083/InRuleRuleEngineService-WsHttpBinding/Service.svc"
contract="InRule.Runtime.Service.IRuleEngineService"
binding="wsHttpBinding"
bindingConfiguration="WsHttpBinding_IRuleEngineService" />
</service>
</services>
</system.serviceModel>
Client Configuration Snippet
<system.serviceModel>
<client>
<endpoint address="http://localhost:8083/InRuleRuleEngineService-WsHttpBinding/Service.svc"
contract="InRule.Runtime.Service.IRuleEngineService"
binding="wsHttpBinding"
bindingConfiguration="WsHttpBinding_IRuleEngineService">
</endpoint>
</client>
<bindings>
<wsHttpBinding>
<binding name="WsHttpBinding_IRuleEngineService"
maxReceivedMessageSize="2147483647">
<readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" />
<security mode="None" />
</binding>
</wsHttpBinding>
</bindings>
</system.serviceModel>
Comments
0 comments
Please sign in to leave a comment.