benz
benz

Reputation: 21

Adding a service reference in VS 2017 15.9.14 windows forms application

I am trying to add a asmx web service to one windows forms app by following way -> Right click- > add service reference. But it seems the service is added under connected service folders only. not under service reference . Is this an expected behavior? or are we supposed to use web reference instead of service reference for windows forms application?

Upvotes: 1

Views: 111

Answers (1)

Warios
Warios

Reputation: 349

To answer this question you need to know the difference between Webservice and WCF web service and you'll find that Here.

Anyway, I'ts a noraml behavior, let's form that in another words, the Service reference will let you communicate with a WCF-based services whatever those services are, but with the web reference, you can only communicate with web services under some conditions. I would use service reference always because it gives more options including those in web service, and it's the new-easy way.

Upvotes: 0

Related Questions