首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Webservices wcfstorm客户端

Webservices wcfstorm客户端
EN

Stack Overflow用户
提问于 2010-11-23 19:37:03
回答 2查看 1.4K关注 0票数 0

我正在使用WCFstrom lite来查找the服务连接的问题。它会出现以下错误

已超过传入消息的最大消息大小配额(65536)。若要增加配额,请使用相应绑定element.RSS源的MaxReceivedMessageSize属性

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

我的网络配置是这样的。

代码语言:javascript
复制
<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>

我应该在哪里添加以下代码:

代码语言:javascript
复制
  <bindings>
        <basicHttpBinding>
            <binding name="LoggedInUsersSoap" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647">
              <security mode="None" />
            </binding>
EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2010-11-24 17:24:18

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

票数 3
EN

Stack Overflow用户

发布于 2011-05-30 17:25:26

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

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/4255621

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档