【问题标题】:Extending timeout and message size in WCF service generated by Biztalk 2006 R2扩展 Biztalk 2006 R2 生成的 WCF 服务中的超时和消息大小
【发布时间】:2010-05-20 15:09:00
【问题描述】:

我正在使用 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. 我应该添加什么来延长超时和消息大小?

【问题讨论】:

    标签: wcf biztalk biztalk2006r2


    【解决方案1】:

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

    【讨论】:

    • 谢谢,我找到了。我正在创建一个 msbuild 脚本,并认为我应该在发布 WCF 服务后更新位置 web.config 但似乎我必须修改绑定信息,这实际上要容易得多
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-10-16
    • 1970-01-01
    • 1970-01-01
    • 2014-10-23
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多