BizTalk 2006 R2によって生成されたWCFサービスのタイムアウトとメッセージサイズの拡張

StackOverflow https://stackoverflow.com/questions/2875045

  •  03-10-2019
  •  | 
  •  

質問

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つの質問は次のとおりです。

  1. なぜこれがまったく機能するのですか?
  2. タイムアウトとメッセージサイズを拡張するために何を追加すればよいですか?
役に立ちましたか?

解決

これらの設定が構成ファイルにない理由を思い出しているようです。これが、バインディング構成が受信場所に保存されているため、BizTalk自体のポート設定を送信します。したがって、それらを設定する方法は、受信ロケーションアダプター構成からそれらを変更することです。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top