在Mono中使用WCF服务吗? [英] Consuming a WCF Service in Mono?

查看:265
本文介绍了在Mono中使用WCF服务吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用代理在Mono上使用WCF Web服务,但出现以下异常:

I am trying to consume a WCF Webservice on Mono using the proxy but I am getting the following exception:

System.NotImplementedException:请求的功能未实现. 在/private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System.ServiceModel/System中的System.ServiceModel.Configuration.WSHttpBindingElement.OnApplyConfiguration(System.ServiceModel.Channels.Binding绑定)[0x00000]处.ServiceModel.Configuration/WSHttpBindingElement.cs:101 在/private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System.ServiceModel/System中的System.ServiceModel.Configuration.StandardBindingElement.ApplyConfiguration(System.ServiceModel.Channels.Binding绑定)[0x00030] .ServiceModel.Configuration/StandardBindingElement.cs:143 在/private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System.ServiceModel/System.ServiceModel.Configuration/ConfigUtil.cs:102 在/private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System.ServiceModel/System.ServiceModel/ChannelFactory.cs中的System.ServiceModel.ChannelFactory.ApplyConfiguration(System.String endpointConfig)[0x000d9] :134 在/private/tmp/monobuild/build/build/BUILD/mono-2.10.9/mcs/class/System.ServiceModel/System.ServiceModel/ChannelFactory.cs:309

System.NotImplementedException: The requested feature is not implemented. at System.ServiceModel.Configuration.WSHttpBindingElement.OnApplyConfiguration (System.ServiceModel.Channels.Binding binding) [0x00000] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System.ServiceModel/System.ServiceModel.Configuration/WSHttpBindingElement.cs:101 at System.ServiceModel.Configuration.StandardBindingElement.ApplyConfiguration (System.ServiceModel.Channels.Binding binding) [0x00030] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System.ServiceModel/System.ServiceModel.Configuration/StandardBindingElement.cs:143 at System.ServiceModel.Configuration.ConfigUtil.CreateBinding (System.String binding, System.String bindingConfiguration) [0x00053] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System.ServiceModel/System.ServiceModel.Configuration/ConfigUtil.cs:102 at System.ServiceModel.ChannelFactory.ApplyConfiguration (System.String endpointConfig) [0x000d9] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System.ServiceModel/System.ServiceModel/ChannelFactory.cs:134 at System.ServiceModel.ChannelFactory.InitializeEndpoint (System.String endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) [0x00024] in /private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System.ServiceModel/System.ServiceModel/ChannelFactory.cs:309

我不确定这到底是什么,但是我认为这可能与Mono不支持WCF Web服务中的身份验证有关.

I am not sure exactly what this is but I take it that it probably is to do with Mono not supporting authentication in WCF Webservices.

我需要能够以某种方式在Mono或Ubuntu上使用此WCF Web服务.我有什么选择?

I need to be able to consume this WCF webservice on Mono or Ubuntu somehow. What are my options?

还有其他东西可以用来作为SOAP服务访问它并使用.Net WCF代码绕过吗?

Is there something else that I can use to access it as a SOAP service and bypass using the .Net WCF code?

推荐答案

以下是我根据您提供的信息提供的答案.只要WCF服务遵守已建立的行业标准WS- *,您就可以将其用作SOAP服务.我不确定Mono会如何发展,以便为您提供运行良好的客户端,但是根据您的问题,似乎缺少功能.在那种情况下,我认为您将不得不自己做一些水管工作.

Here is my answer based on the information provided by you. As long as the WCF service respects the established industry standards WS-* you can consume it as SOAP service. I am not sure how evolved is Mono in order to provide you a ready running client, but according to your issues it is seems features are missing. In that case I assume you will have to do some plumbing on your own.

这篇关于在Mono中使用WCF服务吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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