Windows Mobile应用程序上的WCF代理生成 [英] Wcf proxy generation on windows mobile application

查看:67
本文介绍了Windows Mobile应用程序上的WCF代理生成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于我的移动应用程序,我使用添加Web引用"来生成客户端代理以与WCF服务进行交互.

For my mobile app, I used the Add Web References to generate the client proxy to interact with my WCF service.

然后,我在某处读到了一个与SvcUtil等效的紧凑框架:NetCFSvcUtil.

Then I read somewhere there is an equivalent of SvcUtil for compact framework: NetCFSvcUtil.

我应该使用NetCFSvcUtil而不是遍历添加Web引用"吗?还是添加Web引用"在后台使用NetCFSvcUtil?

Should I be using the NetCFSvcUtil instead of going throught the Add Web References? Or the Add Web References uses NetCFSvcUtil in the background?

任何一个的优缺点?

推荐答案

添加Web参考应该是基于ASMX Web服务的旧代理,而NetCFSvcUtil是生成基于WCF代理的工具.对于基本的Web服务,通​​常没有什么区别-两者都可以工作,但是如果您想使用CF上的一些高级WCF功能,则必须使用NetCFSvcUtil.

Add web reference should be old proxy based on ASMX web services whereas NetCFSvcUtil is tool to generate WCF based proxy. For basic web services there is generally no difference - both will work but if you want to use some advanced WCF features available on CF you will have to use NetCFSvcUtil.

这篇关于Windows Mobile应用程序上的WCF代理生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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