Biztalk を使用して 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 エンドポイントだけでこれがどのように機能するのか、私は驚いています。
したがって、2つの質問は次のとおりです。
- なぜこれが機能するのですか?
- タイムアウトとメッセージ サイズを延長するには何を追加すればよいですか?