2010-05-20 4 views
0

BizTalk을 사용하여 WCF 서비스를 생성하고 있습니다. 내가 얻는 코드는 다음과 같습니다.BizTalk 2006 R2에서 생성 된 WCF 서비스에서 시간 제한 및 메시지 크기 확장

<system.serviceModel> 
    <behaviors> 
     <serviceBehaviors> 
     <behavior name="ServiceBehaviorConfiguration"> 
      <serviceDebug httpHelpPageEnabled="true" httpsHelpPageEnabled="false" includeExceptionDetailInFaults="false" /> 
      <serviceMetadata httpGetEnabled="true" httpsGetEnabled="false" externalMetadataLocation="" /> 
     </behavior> 
     </serviceBehaviors> 
    </behaviors> 
    <services> 
     <!-- Note: the service name must match the configuration name for the service implementation. --> 
     <service name="Microsoft.BizTalk.Adapter.Wcf.Runtime.BizTalkServiceInstance" behaviorConfiguration="ServiceBehaviorConfiguration"> 
     <endpoint name="HttpMexEndpoint" address="mex" binding="mexHttpBinding" bindingConfiguration="" contract="IMetadataExchange" /> 
     <!--<endpoint name="HttpsMexEndpoint" address="mex" binding="mexHttpsBinding" bindingConfiguration="" contract="IMetadataExchange" />--> 
     </service> 
    </services> 
    </system.serviceModel> 

아마도 가장 아름다운 구성은 아니지만 작동 할 수 있습니다. 문제는 mex 끝점 만 있기 때문에 시간 제한 및 메시지 최대 크기를 수정하는 방법을 알지 못합니다. 나는 mex endpoint만으로도 이것이 어떻게 작동하는지 놀랍습니다.

그래서 두 가지 질문은 다음과 같습니다

  1. 왜 이런 일이 전혀 작동 하는가?
  2. 시간 제한 및 메시지 크기를 늘리려면 어떻게해야합니까?

답변

0

바인딩 설정이 biztalk 자체에서 수신 위치/송신 포트 설정에 저장되어 있기 때문에 이러한 설정이 구성 파일에없는 이유를 상기 한 것처럼 보입니다. 따라서 수신 위치 어댑터 구성에서 설정을 변경하는 것이 좋습니다.

+0

감사합니다. 찾았습니다. msbuild 스크립트를 만들고 WCF 서비스 게시 후 위치 web.config를 업데이트해야한다고 생각했지만 실제로 바인딩 정보를 수정해야하는 것으로 나타났습니다. 실제로 바인딩 정보를 훨씬 쉽게 –

관련 문제