小编Hei*_*kov的帖子

WCF中有大量请求的问题

我已经看到这个问题发布了一百万次,但没有一个解决方案对我有用......所以我去了:

调用WCF服务时,我收到以下错误:

格式化程序在尝试反序列化消息时抛出异常:尝试反序列化参数 http://BlanketImportService.ServiceContracts/2011/06:request时出错.InnerException消息是'反序列化BlanketImport.BlanketImportRequest类型的对象时出错.读取XML数据时已超出最大数组长度配额(16384).通过更改创建XML阅读器时使用的XmlDictionaryReaderQuotas对象上的MaxArrayLength属性,可以增加此配额.第1行,第44440行.'.有关更多详细信息,请参阅InnerException.

我修改了readerQuotas客户端服务器,并应用了bindingConfiguration标签.

这是服务器配置:

<bindings>
  <basicHttpBinding>
    <binding name="BilagImportBinding" maxBufferSize="2147483647"
      maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
      <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
        maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
    </binding>
  </basicHttpBinding>
</bindings>

<services>
  <service name="BlanketImport">
    <endpoint address="" binding="basicHttpBinding" bindingConfiguration="BilagImportBinding" bindingNamespace="http://BlanketImportService.ServiceContracts/2011/06" contract="BlanketImport.IBlanketImport">
    </endpoint>
  </service>
</services>
Run Code Online (Sandbox Code Playgroud)

而客户端配置:

  <bindings>
    <basicHttpBinding>
      <binding name="BilagImportBinding" maxBufferSize="2147483647"
        maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
        <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
          maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
      </binding>
    </basicHttpBinding>
  </bindings>
  <client>
    <endpoint address="http://localhost/BlanketImport/BlanketService.svc"
      binding="basicHttpBinding" bindingConfiguration="BilagImportBinding" contract="BlanketServiceReference.IBlanketService"
      name="BasicHttpBinding_IBlanketService" />
  </client>
Run Code Online (Sandbox Code Playgroud)

wcf binding basichttpbinding

8
推荐指数
1
解决办法
1万
查看次数

UITextField上的UITapGestureRecognizer不再适用于IOS 7.1

我有一个UITapGestureRecognizer附加到a UITextField得到一个"下拉"效果.当UITextField点击时,我呈现UIPopover内容.这就像7.1之前的魅力 - 现在UITextField刚刚成为第一响应者,并且完全忽略了手势识别器.尝试设置delaysTouchedBegan为YES但它没有帮助.任何帮助?

iphone objective-c ios uitapgesturerecognizer ios7.1

5
推荐指数
2
解决办法
6820
查看次数

SpriteKit - 在节点上更改anchorpoint会更改所有子节点的位置

我对SpriteKit中的anchorpoint非常困惑.

如果我有一个由多个子节点组成的节点,并且我更改了节点的锚点,那么所有的子节点都会被放错位置.有没有办法解决?

我认为如果我总是使用默认的锚点(0.5,0.5),定位节点真的很烦人,所以有时我会将锚点更改为1.0,0.0,因此它很容易放在右下角.但是如果这个节点有子节点,那么当我改变锚点时它们都被放错了位置.

我错过了什么?

objective-c ios sprite-kit

2
推荐指数
1
解决办法
1955
查看次数