Xamarin表单iOS .Net Standard 2.0 SOAP WSDL - MonoTouch不支持动态代理代码生成

时间:2018-04-13 16:07:56

标签: wcf soap xamarin.ios mono wsdl

我有一个Xamarin Forms应用程序。使用最新的Xamarin / VS2017我使用内置的连接服务从WSDL生成我的代理。

enter image description here

它会生成一个我可以在.Net Standard项目中引用的文件。它在所有项目中编译/构建都很好。在UWP中运行并运行良好。

在iOS中,使用该服务时收到以下错误:

monotouch does not support dynamic proxy code generation override this method or its caller

这不是从Visual Studio for Xamarin iOS中的WSDL生成WCF代理的正确方法吗?我应该采用不同的方式吗?

我也试过svcutil,这会产生相同的结果。

svcutil https://MyApp/services/Service?wsdl /namespace:*,MyAppServices

我已经看到slsvcutil周围的一些喋喋不休这是否正确你需要使用Silverlight命令行?此时我还没有安装Silverlight。

https://forums.xamarin.com/discussion/53856/problems-to-start-slsvcutil-exe

0 个答案:

没有答案
相关问题