2010-12-02 3 views
1

J'ai un WCF-WSHttp Envoyer Port mis en place avec les transactions vérifiées Activer, et j'obtiens l'erreur suivante lorsqu'un message est envoyé:BizTalk WCF Envoyer erreur Port - L'en-tête « CoordinationContext » n'a pas été compris

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. 

Si je désélectionne la case Activer les transactions, le message est traité avec succès. Quelqu'un peut-il m'aider à obtenir ce travail avec le soutien des transactions?

est ici les informations de liaison de web.config de service (transactionFlow est définie sur true):

<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> 

Merci à l'avance!

+0

Juste une pensée, mais vous pouvez essayer cela avec un client WCF non biztalk premier à assurez-vous que le flux de transactions est correctement configuré - http://msdn.microsoft.com/fr-fr/library/ms733943.aspx – StuartLC

Répondre

0

Il s'avère que le problème était avec le service lui-même. Bien que les liaisons ont été configurées correctement avec transactionFlow = « true », le contrat de service était manquant l'attribut suivant pour permettre explicitement les transactions:

[System.ServiceModel.TransactionFlowAttribute(System.ServiceModel.TransactionFlowOption.Allowed)] 
Questions connexes