本文介绍了为WCF中的操作反序列化请求消息体时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 29岁程序员,3月因学历无情被辞! 我无法在调用方法时从应用程序连接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>推荐答案 这篇关于为WCF中的操作反序列化请求消息体时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云! 08-18 20:27