Why can't my netmsmqbinding bind twoway?

I use WCF and netmsmqbinding and I get the following error message:

The contract requires TwoWay (either request-response or duplex), but the "NetMsmqBinding" binding does not support it or is incorrectly configured to support it. Why?

My environment is the 2003 server. The wcf service is hosted as a window service. Thanks in advance for your help.

+3
source share
2 answers

WCF , , WCF .

, OperationContract. :

[OperationContract(IsOneWay = true)]
void YourMethod(YourClass objectHere)

, .

+4

OneWay NetMsmqBinding. IsOneWay OperationContract true.

:

, WCF . ( ) , .

0

Source: https://habr.com/ru/post/1772174/


All Articles