R – How to call a windows service in a console application

console-applicationwcfwindows-services

I wrote a WCF service and I would like to call this the net pipe binding way. I have deployed this in a Windows service.

I wrote this method in my wcf service:

Add(2,1)

It should return 3

I don't know how to call the service hosted in windows in my client console application. I have started my service.


Note:

I would like to call this from a windows service.

Best Answer

you need to use ChannelFactory to create a proxy, and then you can use the proxy to perform wcf tasks.

http://www.switchonthecode.com/tutorials/wcf-tutorial-basic-interprocess-communication