tags:

views:

136

answers:

1

Hello there,

How can I implement one way WCF operations?

I just tried using IsOneWay attribute as:

[OperationContract(IsOneWay=true)]
void MethodName(string param1, int param2)

Is there any other change I need to make or any specific change in app.config?

FYI, my WCF service implements netTcpBinding, though I think that shouldn't make any difference.

A: 

As shown, your code looks ok. There should be no problem with doing one-way calls with netTcpBinding.

If you're interested, chapter 5 in Juval Lowy's awesome Programming WCF Services 2nd Edition contains a good bit of information about one-way services.

From what you've shown, so far though I don't see anything wrong. Please give us some more details.

Terry Donaghe
And a link to an online version of Juval's on the subject. http://msdn.microsoft.com/en-us/magazine/cc163537.aspx
kenny
That's awesome kenny! :) That article refers to WCF 3.0. I'm wondering if there are any differences in 3.5...
Terry Donaghe