Dynamically switch WCF Web Service Reference URL path through config file

后端 未结 5 2055
误落风尘
误落风尘 2020-12-01 02:56

How do you dynamically switch WCF Web Service Reference URL path through config file ?

5条回答
  •  天命终不由人
    2020-12-01 03:22

    There is no dynamic switching. Each time you want to use another URL you must create new instance of service proxy (client) and pass EndpointAddress or enpoint configuration name to the constructor.

提交回复
热议问题