从WCF向Silverlight发送大量数据 [英] Sending huge data from WCF to silverlight

查看:69
本文介绍了从WCF向Silverlight发送大量数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在尝试将大量数据从WCF服务发送到Silverlight应用程序.我正在尝试在WCF服务中序列化对象并将其发送给客户端,但无法在客户端反序列化它.有人可以帮我一个例子吗?
Thanx

Hi,
I am trying to send huge data from WCF service to a silverlight application. I am trying to serialize the object in the WCF service and send it to the client but i am not able to deserialize it in the client side . Can any one please help me out with an example to do so.
Thanx

推荐答案

尝试在servicesclient.config文件中使用maxBufferSize进行操作.
也许增加大小可以帮助您.
Try playing around with the maxBufferSize in the servicesclient.config file see.
Maybe increasing the size can help you out.


您可以尝试通过以下方式更改WCF服务的web.config中的设置.


You can try by changing settings in web.config of your WCF Service as below.


<bindings>                    
 <webhttpbinding>                           

<binding name="webHttpBindingConfig" maxreceivedmessagesize="2147483647" maxbufferpoolsize="2147483647">   

<readerquotas maxdepth="2147483647" maxarraylength="2147483647" maxbytesperread="2147483647" maxnametablecharcount="2147483647" maxstringcontentlength="2147483647" />                           

</binding>                                           

</webhttpbinding>             
</bindings>


您好,
多谢你们.但是我尝试了所有这些,但仍未实现我的目标.剩下的唯一选择是在发送objesct时将其序列化,然后在客户端将其反序列化.
我发现了很多在服务中进行序列化的示例,但是挑战在于获取序列化的流并在客户端中反序列化.
能否请您提出完成序列化和反序列化的任何示例.
谢谢
Hello,
Thanks guys. But i had tried all these and yet dint achive my goal. Tha only option remaining is to serialize the objesct while sending it and then deserializing it in the client side.
I found many examples to serialize it in the service but the challenge is to get that serialized stream and deserialize it in the client.
Can you please suggest any examples where serialization and deserialization is done .
Thanx


这篇关于从WCF向Silverlight发送大量数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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