为单个WCF客户的请求连续发送数据 [英] Sending data continuously for single WCF Client's request

查看:39
本文介绍了为单个WCF客户的请求连续发送数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开发了WCF服务,我们有不同类型的客户端(使用Windows OS或Mac等).因此,我们将XML字符串中的数据传输到WCF客户端.由于XML字符串的大小很大,我们计划将XML字符串分成多个XML字符串,以表明 XML字符串的数量.例如,如果将实际的XML字符串划分为4个XML字符串,则每个XML都有一个符号,表示它是1st,2nd等.此指示是作为这些XML字符串的根节点的属性添加的.

I developed a WCF Service and we have different types of clients (using Windows OS or Mac etc.). So, we transfer the data in XML strings to WCF Clients. Due to large sizes of XML strings, we planned to divide XML string into mulitple XML strings indicating the number of XML string. Say, for example, if the actual XML String is divided into 4 XML strings, each XML have a notation that it is 1st, 2nd etc. This indication is added as an attribute of root node of these XML strings.

我想知道的是,如何将这些分割的XML字符串一个接一个地连续发送到WCF客户端以进行单个请求?

What I want to know is, how to send these divided XML strings continuously one after another to the WCF Client for single request?

请帮助我给出您的建议.

Please help me giving your suggestions.

预先感谢

苏里亚

推荐答案

流,缓冲是您可以探索的一些选项.需要为绑定设置TransferMode属性.

Streaming, buffering are some of the options you can explore. One needs to set TransferMode property for bindings.

访问以下URL以获取更多详细信息

Visit following URL for further details

http://msdn.microsoft.com/en-us/library/ms789010.aspx

希望这会有所帮助.

 


这篇关于为单个WCF客户的请求连续发送数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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