0

我正在使用 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 端点一起工作。

所以两个问题是:

  1. 为什么这完全有效?
  2. 我应该添加什么来延长超时和消息大小?
4

1 回答 1

0

我似乎记得这些设置不在配置文件中的原因是因为绑定配置存储在 biztalk 本身的接收位置/发送端口设置中。所以设置它们的方法是从接收位置适配器配置中更改它们。

于 2010-05-21T03:26:09.890 回答