Is possible to access WCF Service without adding Service Reference?

后端 未结 5 1693
太阳男子
太阳男子 2020-12-13 14:38

I need to access Wcf service methods without adding Service Reference?how to do this?

Step 1:I create a WCF Service.
Step 2:Add Service Reference to my applicati

5条回答
  •  时光取名叫无心
    2020-12-13 15:14

    When in John did this: "Step 2:Add Service Reference to my application." Visual Studio added the endpoint and default bindings to the app.config file of his application. He does not need to specify a URL. John's code should work just fine as long as the service has implemented the required contracts.

提交回复
热议问题