繁体   English   中英

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

[英]Extending timeout and message size in WCF service generated by Biztalk 2006 R2

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

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

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM