2010-12-02 7 views
1

이해되지 않았다, 나는 메시지가 전송되는 다음과 같은 오류 받고 있어요 :BizTalk WCF 보내기 포트 오류 - 헤더 'CoordinationContext는'나는 WCF-WSHttp 포트가 거래를 체크 ENABLE로 설정 보내

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> 

감사 :

여기 (transactionFlow이 true로 설정) 서비스의 web.config에서 바인딩 정보입니다!

+0

그냥 생각,하지만 당신은 먼저 비 biztalk의 WCF 클라이언트를 사용하여이 작업을 시도 할 수 있습니다 트랜잭션 흐름이 올바르게 설정되었는지 확인하십시오 - http://msdn.microsoft.com/en-us/library/ms733943.aspx – StuartLC

답변

0

서비스 자체에 문제가 있음을 알 수 있습니다. 바인딩은 transactionFlow는 = "true"로, 서비스 계약이 명시 적으로 거래 할 수 있도록 다음과 같은 속성이 누락 된 제대로 구성되었지만 :

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