WCF - remote service without using IIS - base address?
Posted
by Mark Pim
on Stack Overflow
See other posts from Stack Overflow
or by Mark Pim
Published on 2010-03-25T09:33:17Z
Indexed on
2010/03/25
10:23 UTC
Read the original article
Hit count: 450
I'm trying to get my head around the addressing of WCF services.
We have a client-server setup where the server occasionally (maybe once a day) needs to push data to each client. I want to have a lightweight WCF listener service on each client hosted in an NT service to receive that data. We already have such an NT service setup hosting some local WCF services for other tasks so the overhead of this is minimal.
Because of existing legacy code on the server I believe the service needs to be exposed as ASMX and use basicHttpBinding
to allow it to connect.
Each client is registered on the server by the user (they need to configure them individually) so discovery is not the issue.
My question is, how does the addressing work? I imagine the user entering the client's address on the server in the form
http://0.0.0.0/MyService
or even
http://hostname/MyService
If so, how do I configure the client service in its App.config? Do I use localhost
?
If not then what is the reccommended way of exposing the service to the server?
Note:
- I don't want to host in IIS as that adds extra requirements to the hardware required for the client.
- The clients will be almost certainly located on LANs, not over the public internet
© Stack Overflow or respective owner