My final project part2(compact wcf with Compression)

本文介绍使用 Compact WCF 的 BasicHTTPBinding 进行无线数据传输时遇到的问题及解决方案。当 PPC 端发送的数据包超过 45KB 时,会收到“bad response”错误,表明数据包过大。通过调整 receiveSize 和 receiveBufferSize 参数未解决问题,最终采用手动分段发送的方式实现数据传输。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Using compact WCF-BasicHTTPBinding(Application)

 

Transmit data using compact wcf-BasicHTTPBinding by wireless.

Stop using USB to injury my ppc, brush off Microsoft ActiveSync.

 

My final project part2:

If ppc side send a packet that is bigger than 45kb the server's response is bad response, that means the packet is too big, so use some segments to transmitting.

pc side send a packet which is no limit. but soap message size should be less than 100kb.

ppc端发送soap message 在45kb左右,返回的相应“bad response”, 就是包太大,修改了receiveSize和receiveBufferSize得到同样结果,所以只能分段发送,我没有找到可以分段发送的函数, 只能自己写了。pc端发送soap message 似乎没有限制, 但是soap mssage 应该不能超过100kb,这是我看到的情况得出的结论,也许修改某些参数可以解决,不知道具体原因,探索中。。。

list Local directory:

 
 

click new -> typing file name -> 

 

 

 

 

 


 

 update Server ->

 

 

wait response:

 

 

Delete "frank.zip" ->

 


 

Delete Successful:

 

 


Change Side -> Server Side: "frank.zip" is here

Select item "weiwei.zip" -> Download -> ->waiting for transmitting complete

-> change side -> local side:

 

 

 


 

 

 Delete "weiwe.zip" ->

 

 

 Delete Successful:

 

 


 

 Change Side -> Local Side: "weiwe.zip" is here

 

 

Selete "weiwei.zip" -> click update Contacts -> ->update current contacts

 

 

Processing...

 


 

 

then you can use contacts list(my project part1) and show the contacts info.

 

 

 

to be continue...

 

Frank Avanel  

 

 

     

转载于:https://www.cnblogs.com/frankavanel/archive/2009/03/26/frank_final_project_part2.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值