*Result and *ResultSpecified parameters in WCF service?

前端 未结 6 402
[愿得一人]
[愿得一人] 2021-01-03 11:19

In my WCF Service I have a function, for example:

bool ValidateLogin(string user, string password)

after I hosted it in windows azure and a

6条回答
  •  情书的邮戳
    2021-01-03 11:31

    In your client project, ensure that you chosen 'Add Service Reference' instead of 'Add Web Reference'. 'Add Service Reference' uses WCF while 'Add Web Reference' does not and compensates for optional parameters by adding the '[paramName]Specified' additional parameters.

提交回复
热议问题