Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WCF and out parameters

Tags:

wcf

It seems there is restriction in having the number of out parameters in WCF. My service reference only downloads one out parameter.

Example: if the service has the following method:

void methodA(out string param1, out string param2)

then the service reference will only create

methodA(out string param1).

Anyone knows how to solve this?

like image 766
user384080 Avatar asked Dec 28 '22 07:12

user384080


1 Answers

I don't believe there's a limit to the number of out-parameters.

However, for a method that returns void, the first out-parameter actually becomes the return value of the method in the service reference due to a limitation in WSDL. So I would expect the signature of the method to become string methodA(out string param2).

like image 148
bernhof Avatar answered Jan 09 '23 17:01

bernhof