2010-12-02 5 views
1

を理解していなかった私は、WCF-WSHttpはポートがチェック取引を有効にし、メッセージが送信されたときに、私は次のエラーを取得していて設定送信があります。のBizTalk WCFはポートエラーを送信する - ヘッダー「CoordinationContextは」

The header 'CoordinationContext' from the namespace 'http://schemas.xmlsoap.org/ws/2004/10/wscoor' was not understood by the recipient of this message, causing the message to not be processed. This error typically indicates that the sender of this message has enabled a communication protocol that the receiver cannot process. Please ensure that the configuration of the client's binding is consistent with the service's binding. 

[トランザクションを有効にする]チェックボックスをオフにすると、メッセージは正常に処理されます。トランザクションサポートでこれを手助けできる人は誰ですか?事前に

<bindings> 
     <wsHttpBinding> 
     <binding name="serviceBinding" closeTimeout="00:01:00" 
      openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 
      bypassProxyOnLocal="false" transactionFlow="true" hostNameComparisonMode="StrongWildcard" 
      maxBufferPoolSize="524288" maxReceivedMessageSize="65536" 
      messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" 
      allowCookies="false"> 
      <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 
       maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 
      <reliableSession ordered="true" inactivityTimeout="00:10:00" 
       enabled="false" /> 
      <security mode="Transport"> 
      <transport clientCredentialType="Ntlm" proxyCredentialType="None" 
       realm="" /> 
      <message clientCredentialType="Windows" negotiateServiceCredential="true" 
       establishSecurityContext="true" /> 
      </security> 
     </binding> 
     </wsHttpBinding> 
    </bindings> 

ありがとう:

ここでサービスのweb.config(transactionFlowがtrueに設定されている)からのバインディング情報です!

+0

だけ考えていますが、最初に非のBizTalk WCFクライアントでこれを試してみてくださいトランザクションフローが正しく設定されていることを確認してください - http://msdn.microsoft.com/en-us/library/ms733943.aspx – StuartLC

答えて

0

サービス自体に問題があったことが分かります。バインディングがtransactionFlow =「true」にして適切に構成されていたが、サービス契約は、明示的に取引できるようにするには、以下の属性がありませんでした:

[System.ServiceModel.TransactionFlowAttribute(System.ServiceModel.TransactionFlowOption.Allowed)] 
関連する問題