2012-04-17 4 views
3

wf wcf serviceを使用していて、web.configファイルのコントロールエンドポイント用に設定が追加されました。 私はworkflowcontrolクライアントを介して終了メソッドを呼び出すと、 "Toを持つメッセージは、EndpointDispatcherのAddressFilterの不一致により受信者で処理できません。送信者と受信者のEndpointAddressが一致することを確認してください。 このようなコントロールエンドポイントの設定。サービスでエンドポイントがweb.configファイル内に設定されている場合の例外

は、クライアントのシレで

<services> 
     <service name="PurchaseOrder"> 
     <endpoint address="" 
     binding="basicHttpBinding" contract="POWorkflowService.IPurchaseOrder" />  
     <endpoint address="wce" 
     binding="basicHttpBinding" kind="workflowControlEndpoint" /> 
     </service> 
    </services> 
    <standardEndpoints> 
     <workflowControlEndpoint> 
     <standardEndpoint/> 
     </workflowControlEndpoint> 
    </standardEndpoints> 

の構成を側 - である -

<client> 
      <endpoint address="http://localhost:3650/POService.xamlx/wce" binding="basicHttpBinding" 
       bindingConfiguration="BasicHttpBinding_IPurchaseOrderIIS" contract="System.ServiceModel.Activities.IWorkflowInstanceManagement" 
       name="IPurchaseOrderControlEndpointISS" /> 
    </client> 

私はあなたが解決策を見つけるために私を助けている場合にいただければ幸いです。 workflowserviceホストを使用し、コントロールエンドポイントをコードに追加すると正常に動作します。

答えて

1

ServiceBehaviorのAddressFilterModeを設定してみてください。

関連する問題