Web Service (ASMX) with example in ASP.Net

Hariom
 
on Oct 15, 2019 01:06 AM
1911 Views

Hello,

I want to use web Service in my Asp.net project but i don't know about web services and its uses.

please explain with Examples.

Thank you

Download FREE API for Word, Excel and PDF in ASP.Net: Download
Hariom
 
on Oct 16, 2019 03:29 AM
dharmendr says:

Hi Hariom,

Refer below articles.

Select Insert Edit Update Delete using Web Service in ASP.Net

 

with the help of this link, there is an article.

this provides an info of how to use web service for CRUD operation.

but we can also apply CRUD operation without web service. approx same  no  of code lines.

then what is the advantages of web services ?

dharmendr
 
on Oct 16, 2019 03:38 AM

Hi Hariom,

Web Services offer many benefits over other types of distributed computing architectures.

  • Interoperability - This is the most important benefit of Web Services. Web Services typically work outside of private networks, offering developers a non-proprietary route to their solutions. Services developed are likely, therefore, to have a longer life-span, offering better return on investment of the developed service. Web Services also let developers use their preferred programming languages. In addition, thanks to the use of standards-based communications methods, Web Services are virtually platform-independent.

  • Usability - Web Services allow the business logic of many different systems to be exposed over the Web. This gives your applications the freedom to chose the Web Services that they need. Instead of re-inventing the wheel for each client, you need only include additional application-specific business logic on the client-side. This allows you to develop services and/or client-side code using the languages and tools that you want.

  • Reusability - Web Services provide not a component-based model of application development, but the closest thing possible to zero-coding deployment of such services. This makes it easy to reuse Web Service components as appropriate in other services. It also makes it easy to deploy legacy code as a Web Service.

  • Deployability - Web Services are deployed over standard Internet technologies. This makes it possible to deploy Web Services even over the fire wall to servers running on the Internet on the other side of the globe. Also thanks to the use of proven community standards, underlying security (such as SSL) is already built-in.