WCF 服务中的 *Result 和 *ResultSpecified 参数? [英] *Result and *ResultSpecified parameters in WCF service?
问题描述
在我的 WCF 服务中,我有一个函数,例如:
In my WCF Service I have a function, for example:
bool ValidateLogin(string user, string password)
在我将其托管在 windows azure 中并将引用添加到我的网络应用程序后,该功能变为:
after I hosted it in windows azure and add references into my web app, that function became:
bool ValidateLogin(string user, string password, out int ValidateLoginResult, out bool ValidateLoginResultSpecified)
有谁知道这两个参数是什么?以及如何防止在托管后添加它?
Does anyone know what these two parameters are? And how can I prevent it being added after hosting?
推荐答案
显然,这来自 WSDL 生成器,在本例中用于 VS 2005 的添加 Web 引用..."选项:
Apparently, this comes from the WSDL generator, in this case used on the "Add Web Reference..." option of VS 2005:
http://devpinoy.org/博客/cruizer/archive/2008/10/05/some-wcf-gotchas.aspx
MSDN 论坛上的答案也暗示了遗留支持:
The answer on the MSDN forums also hints at legacy support:
http://social.msdn.microsoft.com/Forums/en/windowsazure/thread/406a6b6b-9dab-469d-ad0f-1f8f95cf0656
所以我的回答是,我猜你的客户端是 .NET 2?
So my answer, I'm going to guess your client is .NET 2?
这篇关于WCF 服务中的 *Result 和 *ResultSpecified 参数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!