代码之家  ›  专栏  ›  技术社区  ›  Sergej Andrejev

在Biztalk 2006 R2生成的WCF服务中扩展超时和消息大小

  •  0
  • Sergej Andrejev  · 技术社区  · 14 年前

    我正在使用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. 这到底是为什么?
    1 回复  |  直到 14 年前
        1
  •  0
  •   tomasr    14 年前

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