How to add wcf service at runtime

前端 未结 3 1607
没有蜡笔的小新
没有蜡笔的小新 2021-01-16 16:27

How can i add wcf service at runtime in my winform UI. I created a wcf service which return running processes of hosted machine. I want to add the hosted machine service in

3条回答
  •  我在风中等你
    2021-01-16 17:15

    not sure what you are trying to do here. But you need to know two things to call the WCF service 1) Service Contract 2) End Point. Now there is no escaping from Service Contract as you need to know what all operations you can consume. However, with WCF 4 there is a new feature called WCF discovery which helps you determine the end point dynamically i.e. at RunTime. Refer to following link http://msdn.microsoft.com/en-us/library/dd456791.aspx

提交回复
热议问题