sure why not? webforms or MVC is just about making up a visual representation of the data retrieved from that particular webservice. All the webservice from that third party does is exposing data in a standardized way. That's the whole point of it: to expose
data in such a way that it doesn't matter if you connect with .NET, Node.js, PHP, Java, whatever, ... it just gives back the data in a standard form and your end of the technology stack needs to make sure it understands that standard. That's all.
Webservices, .asmx, were introduced with .NET 1.0 so even back then you could've connected with it.
Did you actually try to connect with it from Visual Studio (right click on the project, add service reference...).
Grz, Kris.
Read my blog | Twitter Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!
mikejharper
Member
10 Points
26 Posts
Consume an asmx web service with WebApi?
Dec 15, 2012 09:57 PM|LINK
Hi Guys,
Would it be possible to consume this using WebApi or MVC4?
http://www.ezzylearning.com/services/CountryInformationService.asmx
It's for an assignment and I don't really want to use web forms
Many thanks
Mike
XIII
All-Star
182787 Points
23484 Posts
ASPInsiders
Moderator
MVP
Re: Consume an asmx web service with WebApi?
Dec 16, 2012 11:20 AM|LINK
Hi,
sure why not? webforms or MVC is just about making up a visual representation of the data retrieved from that particular webservice. All the webservice from that third party does is exposing data in a standardized way. That's the whole point of it: to expose data in such a way that it doesn't matter if you connect with .NET, Node.js, PHP, Java, whatever, ... it just gives back the data in a standard form and your end of the technology stack needs to make sure it understands that standard. That's all.
Webservices, .asmx, were introduced with .NET 1.0 so even back then you could've connected with it.
Did you actually try to connect with it from Visual Studio (right click on the project, add service reference...).
Grz, Kris.
Interested in Azure, ASP.NET (MVC), jQuery, WCF, EF, MS SQL, ...
Keep the forums clean: report to the moderation team!