tags:

views:

103

answers:

1

Hi,

I using two WCF services. WCF service A is hosted in my .NET Winform application and WCF Service B is hosted on a Windows Service.

I am able to instantiate a client for WCF Service B and use the methods - i.e. call the WCF service hosted on Windows service from the .NET Winform app.

I am not able to accomplish the reverse with WCF Service A - i.e. call the WCF Service hosted on the .NET Winform application from the Windows Service. The call to the method times out.

I have used the WCF Test client from the Visual Studio command prompt and it can successfully make calls to WCF Service A.

Is this due to a security issue or something from the Windows Service?

Please advise.

Thanks in advance!

Subbu

+1  A: 

I think the only viable approach (without the extreme of having some messaging infrastructure), is to have the service invoke operations back on your client via a WCF callback. A good example of this can be found here:

http://stackoverflow.com/questions/1044174/what-steps-do-i-need-to-take-to-use-wcf-callbacks

This is good for dealing with events that happen server side and allowing the client to respond to them. If events isn't what you're looking for, then your client could just register with the server (specifying the callback contract), and then the server can invoke your client at will.

Tim Roberts
This method has not worked for me only because I am dealing with asynchronous communications between the two processes on my machine. I have decided to host a WCF service in each process eliminating the call back approach. Thanks a lot for your guidance.
Subbu