2012-07-02 39 views
0

我尝试使用代理来消费单上的一个WCF web服务,但我得到以下异常:在Mono中使用WCF服务?

System.NotImplementedException:请求的功能未实现。 位于/private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System.ServiceModel/中的System.ServiceModel.Configuration.WSHttpBindingElement.OnApplyConfiguration(System.ServiceModel.Channels.Binding绑定)中[0x00000] System.ServiceModel.Configuration/WSHttpBindingElement.cs:101 at /Private/tmp/monobuild/build/BUILD/mono-2.10 System.ServiceModel.Configuration.StandardBindingElement.ApplyConfiguration(System.ServiceModel.Channels.Binding binding)[0x00030] ./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.ApplyCon System.ServiceModel中的/frivate/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System.ServiceModel/System.ServiceModel/ChannelFactory.cs:134 中的配置(System.String endpointConfig)[0x000d9] .ChannelFactory.InitializeEndpoint(System.String endpointConfigurationName,System.ServiceModel.EndpointAddress remoteAddress)在/private/tmp/monobuild/build/BUILD/mono-2.10.9/mcs/class/System.ServiceModel/System.ServiceModel/中的[0x00024] ChannelFactory.cs:309

我不确定这是什么,但我认为它可能是Mono不支持WCF Web服务中的身份验证。

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

是否还有别的东西可以用来作为SOAP服务访问它,并绕过使用.Net WCF代码?

+0

如果您尝试使用无认证,它是否支持您的所有需求?我假设你知道Mono在使用WCF服务方面还不够成熟。 –

+0

我没有这个网络服务。它由一家公司提供,所以我怀疑它可以在没有验证的情况下使用。有没有其他的方式来使用web服务?它基于SOAP,因此我可以将它用作SOAP Web服务? – startupsmith

+0

您是否使用Mono有限?如果您熟悉Java等其他技术,可以帮助您很多。 –

回答

0

这是我根据您提供的信息所作的回答。只要WCF服务遵守既定的行业标准WS- *,您就可以将其作为SOAP服务使用。我不确定Mono是如何演变的,以便为您提供一个随时可用的客户端,但根据您的问题,似乎缺少功能。在这种情况下,我认为你必须自己做一些管道工。

+0

你知道在.NET中使用WCF作为SOAP服务的例子吗? – startupsmith

+0

并非如此,因为大部分.NET客户端都在使用WSDL来生成代理。我知道的唯一一个是http://soap-sec.sourceforge.net/。不知道它会满足你的需求,但你可以用它作为出发点。 –