MonoTouch的:WCF客户端示例所需 [英] Monotouch: WCF Client Example Needed

查看:126
本文介绍了MonoTouch的:WCF客户端示例所需的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个WCF客户端使用MonoTouch的连接到我的服务器。由于MonoTouch的不支持动态code代我厌倦了使用slscvutil.exe生成客户端code。我从获得的输出不能编译。它试图用 ChannelBase 作为泛型类 ChannelBase< T> ,但它不是通用的。此外,所有的例子我能找到使用 ChannelBase 作为一个泛型类。有没有人有一个MonoTouch的WCF客户端在.NET 4.0的样本?谢谢!

I am trying to create a WCF client to connect to my server using MonoTouch. Since Monotouch doesn't support dynamic code generation I tired using slscvutil.exe to generate the client code. The output I get from that does not compile. It tries to use ChannelBase as a generic class ChannelBase<T>, but it is not generic. Additionally all examples I can find use ChannelBase as a generic class. Does anyone have a sample of a MonoTouch WCF client in .net 4.0? Thanks!

推荐答案

我没有得到一个样品给你 - 无论是我建立的是闭源的WCF客户端应用程序 - 但我已经成功地跟着上<步骤A HREF =htt​​p://docs.xamarin.com/ios/Guides/Application_Fundamentals/Introduction_to_Web_Services rel="nofollow">http://docs.xamarin.com/ios/Guides/Application_Fundamentals/Introduction_to_Web_Services打造2应用程序,包括使用SLsvcutil工具 - http://msdn.microsoft.com/en-us/library/cc197958%28v=vs.95%29.aspx

I've not got a sample for you - both the WCF client apps I've built are closed source - but I've successfully followed the steps on http://docs.xamarin.com/ios/Guides/Application_Fundamentals/Introduction_to_Web_Services to build 2 apps, including using the SLsvcutil tool - http://msdn.microsoft.com/en-us/library/cc197958%28v=vs.95%29.aspx.

此外, ChannelBase&LT; T&GT; 是SL4显然通用 - 的 http://msdn.microsoft.com/en-us/library/cc190431%28v=vs.100%29.aspx

Further, ChannelBase<T> is clearly Generic in SL4 - http://msdn.microsoft.com/en-us/library/cc190431%28v=vs.100%29.aspx

有个样板,您可以张贴这显示了错误?例如在客户端和服务,复制您所看到的错误。

Is there a sample you can post which shows the error? e.g. a client and service which replicate the error you are seeing.

这篇关于MonoTouch的:WCF客户端示例所需的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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