locked
How to design flexible wcf service which will work in lan and internet RRS feed

  • Question

  • User88744855 posted

    i am new in wcf service. still reading books to acquire knowledge. my company has many offices in our city but one head office. my company has one static IP. my company plan to host a wcf service in HQ server which can be reach by static IP over the internet and other office is connected each other by VPN. our company want me to develop a wcf service which will be using to handle company data among all the pc of HQ and also among all the pc of other offices. also people can outside will be able to connect to that wcf service.

    company want that when any one try to connect to our service from HQ office then HQ lan will be used to connect to that service.

    when any one try to connect to our service from our other offices then WAN or VPN connection will be used.

    when any one try to connect to our service from other place or home then connection will be made through internet.

    i am new in WCF so not being able to think how to design this kind of service with WCF which will be hosted in our HQ server which has static IP.

    so guide me is there any tweak requited in coding or in config file where we specify various bindings.

    i guess that we need to specify various binding in service config file. so just guide me how do i design or write the config file for service end which can be requested over the LAN, VPN and as well as internet. if possible give me a sample copy of config file for service end. thanks

    Tuesday, June 18, 2013 9:50 AM

Answers

  • User503812343 posted

    It looks like you have multiple clients to access same service funcationality. If the same functionality needs to be share with your clients you need to develop wcf service with multiple bindings like for clients on same machine you can have endpoint with netnamedpipebinding for clients on same network need to have endpoint with binding of netTcpBinding and for internet clients you need wsHttpBindinds.

    here is excellent article for implementing step by step WCF service with multiple endpoints and clients

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, June 18, 2013 11:36 AM