如何向.Net CF 2.0应用程序添加WCF服务的引用?
.net CF 2.0 应用程序不理解 WCF 代理。因此,需要先将其转换为 ASMX 代理,然后将其添加为 .net CF 2.0 应用程序的参考。 但这是理论上的。需要知道具体的操作步骤。
The .net CF 2.0 application does not understand the WCF proxy. So, it neds to be converted to ASMX proxy first and then to be added as reference to .net CF 2.0 application.
But this is in theory. Need to know the exact steps of how to do it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是一篇关于如何使用 netcfsvcutil.exe 执行此操作的好文章。
http://www.codeproject.com/KB/WCF/netcfwcf.aspx
Here's a good article on how to do it with the netcfsvcutil.exe.
http://www.codeproject.com/KB/WCF/netcfwcf.aspx
在您的 .net CF 2.0 项目中,您应该能够为基于 WCF 的服务添加 WSDL 引用。完成此操作后,该项目应该构建一个与 .net CF 2.0 兼容的代理。
In your .net CF 2.0 project, you should be able to add a reference the WSDL for the WCF-based service. Having done that, the project should build a .net CF 2.0-compatible proxy.