我正在使用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归因
不隶属于 StackOverflow
scroll top