为WCF中的操作反序列化请求消息体时出错 [英] Error in deserializing body of request message for operation in WCF

查看:205
本文介绍了为WCF中的操作反序列化请求消息体时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在调用方法时从应用程序连接wcf服务。我得到的错误如反序列化操作请求消息正文中的错误。



请帮我任何一个。

我的应用程序配置设置为:



I can''t able to connect wcf service from application while calling a method.i''m getting the error like "Error in deserializing body of request message for operation ".

Please help me any one.
My application config setting are :

<system.serviceModel>
    <bindings>
      <wsHttpBinding>
        
        <binding name="WSHttpBinding_IEstormPrincorp"  closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00"

         sendTimeout="00:10:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" 

         maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" 

         useDefaultWebProxy="true" allowCookies="false">
          <readerQuotas maxDepth="4000" maxStringContentLength="2147483647" maxArrayLength="2147483647" 

          maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647"/>
          <reliableSession ordered="true" inactivityTimeout="00:10:00" enabled="false"/>
          <security mode="Message">           
            <transport clientCredentialType="Windows" proxyCredentialType="None" realm=""/>
            <message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" establishSecurityContext="true"/>
          </security>
        </binding>
      </wsHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://localhost:13849/EstormPrincorp.svc"

          binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IEstormPrincorp"

          contract="PrinCorpService.IEstormPrincorp" name="WSHttpBinding_IEstormPrincorp">
        <identity>
          <dns value="localhost" />
        </identity>
      </endpoint>
    </client>
  </system.serviceModel>

推荐答案

尝试以下链接

http://stackoverflow.com/questions/12578492/error-in-deserializing-body-of-request-message-for-operation-try-changing-maxn [ ^ ] < br $> b $ b

http://stackoverflow.com/questions/2765598/wcf-the-maximum-nametable-character-count-quota-16384-has-been-exceeded-whil [ ^ ]
Try Below Links
http://stackoverflow.com/questions/12578492/error-in-deserializing-body-of-request-message-for-operation-try-changing-maxn[^]

http://stackoverflow.com/questions/2765598/wcf-the-maximum-nametable-character-count-quota-16384-has-been-exceeded-whil[^]


这篇关于为WCF中的操作反序列化请求消息体时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆