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만으로도 이것이 어떻게 작동하는지 놀랍습니다.
그래서 두 가지 질문은 다음과 같습니다- 왜 이런 일이 전혀 작동 하는가?
- 시간 제한 및 메시지 크기를 늘리려면 어떻게해야합니까?
감사합니다. 찾았습니다. msbuild 스크립트를 만들고 WCF 서비스 게시 후 위치 web.config를 업데이트해야한다고 생각했지만 실제로 바인딩 정보를 수정해야하는 것으로 나타났습니다. 실제로 바인딩 정보를 훨씬 쉽게 –