Introduction to ASP.NET Web Services
What are Web services?
Web services provide some service or functionality over HTTP. Web service allow applications to inter-operate over networks. These services are exposed through endpoints.
ASP.NET Web Services use the following four main technologies:
Creating a super simple ASP.NET Web Service
What are Web services?
Web services provide some service or functionality over HTTP. Web service allow applications to inter-operate over networks. These services are exposed through endpoints.
ASP.NET Web Services use the following four main technologies:
- HTTP (Hyper Text Transfer Protocol) -
- XML (Extensible Markup Language) -
- SOAP (Simple Object Access Protocol) - Message protocol built on top of XML
- WSDL (Web Service Description Language) - Built on top of XML, WSDL is used to tell the world how to consume the web service. WSDL of a web service provides information that enables application to access service, know what methods are exposed and what parameters are required to invoke the method. Clients can create proxy class using information in WSDL.
Creating a super simple ASP.NET Web Service
- Open Visual Studio > File > New > Project > Select ASP.NET Web Forms Application under Visual C# > Web Templates.
- Click OK to accept the defaults
- Right click on the project and select Add > New Item > select Web Service > Click Add.
- Click on WebService1.asmx in solution explorer and look at the code.
- Right click on WebService1.asmx and select View in Browser
Comments
Post a Comment