環境:
Visual Studio 2008 Beta 2
こんにちは。
こちら でご紹介している .NET Framework 3.5 からの WCF / WF 連携の新機能 (WorkflowServiceHost) ですが、これを WAS に展開し起動を自動化するには、.svc と .config を以下のように記述します。
[Service.svc]
<%@ ServiceHost Language=”C#” Debug=”true” Service=”OrderApplicationService.OrderWorkflow” Factory=”System.ServiceModel.Activation.WorkflowServiceHostFactory” %>
[web.config]
… 前半省略 (以下、ServiceModel の設定のみ) ….
<system.serviceModel>
<services>
<service name=”OrderApplicationService.OrderWorkflow” behaviorConfiguration=”OrderWorkflowBehavior”>
<endpoint address=””
binding=”wsHttpContextBinding”
contract=”OrderApplicationService.IOrderWorkflow” />
<endpoint address=”mex”
binding=”mexHttpBinding”
contract=”IMetadataExchange” />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name=”OrderWorkflowBehavior”>
<serviceMetadata httpGetEnabled=”true” />
<serviceDebug includeExceptionDetailInFaults=”true” />
<serviceCredentials>
<windowsAuthentication
allowAnonymousLogons=”false”
includeWindowsGroups=”true” />
</serviceCredentials>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
Categories: Uncategorized
PingBack from http://www.artofbam.com/wordpress/?p=8510
LikeLike