2012-07-02 40 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/。不知道它會滿足你的需求,但你可以用它作爲出發點。 –