Webservices wcfstorm客户端

时间:2010-11-23 11:37:03

标签: asp.net

我正在使用WCFstrom lite来查找webservice连接的问题。它出现了错误

” 已超出传入邮件的最大邮件大小限额(65536)。要增加配额,请在相应的绑定元素上使用MaxReceivedMessageSize属性.RSS Feed “

但由于它是lite版本,我在wcfstrom上找不到任何配置。

我的网络配置看起来像。

<system.serviceModel>
<extensions>
  <behaviorExtensions>
    <!-- Declare that we have an extension called WSDL Extras-->
    <add name="wsdlExtensions" type="WCFExtras.Wsdl.WsdlExtensionsConfig, WCFExtras, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null" />
  </behaviorExtensions>
</extensions>
<services>
              <service name="xxxxxxxxxxxxxxxxxx" behaviourConfiguration="xxxxxxxxxxxxxx">
                    <!-- Service Endpoints -->
                    <endpoint address="" binding="wsHttpBinding" behaviorConfiguration="WcfExtras.EndpointBehavior" contract="xxxxxxxxxxxx">
                          <!-- 
          Upon deployment, the following identity element should be removed or replaced to reflect the 
          identity under which the deployed service runs.  If removed, WCF will infer an appropriate identity 
          automatically.
      -->
                          <identity>
                                <dns value="localhost" />
                          </identity>
                    </endpoint>
    <endpoint address="mex" binding="mexHttpBinding" behaviorConfiguration="WcfExtras.EndpointBehavior" contract="IMetadataExchange" />
  </service>
        </services>
        <behaviors>
  <endpointBehaviors>
    <behavior name="WcfExtras.EndpointBehavior">
      <wsdlExtensions location="http://localhost:3893/xxxxxxxx.svc" singleFile="true" />
    </behavior>
  </endpointBehaviors>
  <serviceBehaviors>
                    <behavior name="xxxxxxx.xxxxxxxx">
                          <!-- To avoid disclosing metadata information, set the value below to false and remove the metadata endpoint above before deployment -->
                          <serviceMetadata httpGetEnabled="true" />
                          <!-- To receive exception details in faults for debugging purposes, set the value below to true.  Set to false before deployment to avoid disclosing exception information -->
                          <serviceDebug includeExceptionDetailInFaults="false" />
                    </behavior>
              </serviceBehaviors>
        </behaviors>

我在哪里添加以下代码:

  <bindings>
        <basicHttpBinding>
            <binding name="LoggedInUsersSoap" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
              <security mode="None" />
            </binding>

2 个答案:

答案 0 :(得分:2)

我找到答案,只需在wcf客户端中选择服务并在端点上编辑,然后就可以编辑maxReceivedmessages属性

答案 1 :(得分:1)

在WCFStorm中(至少在当前的1.3.0版本中),您还可以通过加载具有正确(大)值的客户端app.config文件来增加MaxReceivedMessage。

http://www.wcfstorm.com/wcf/loading-client-appconfig-files.aspx