--- title: "[How Do I:] Create and Call a Simple Web Service in ASP.NET | Microsoft Docs" author: rick-anderson description: "In this video Chris Pels will show how to create a web service in ASP.NET and then call the service from another ASP.NET web site. First, learn how to create..." ms.author: aspnetcontent manager: wpickett ms.date: 03/27/2008 ms.topic: article ms.assetid: 34464109-4968-4eee-a1b1-5601cc853125 ms.technology: dotnet-webforms ms.prod: .net-framework msc.legacyurl: /web-forms/videos/how-do-i/how-do-i-create-and-call-a-simple-web-service-in-aspnet msc.type: video --- [How Do I:] Create and Call a Simple Web Service in ASP.NET ==================== by [Chris Pels](https://twitter.com/chrispels) In this video Chris Pels will show how to create a web service in ASP.NET and then call the service from another ASP.NET web site. First, learn how to create an .asmx component which represents a web service in an ASP.NET web site. When creating the web service learn how to control several aspects of the web service functionality with web service attributes. Next, see how to test the web service in the Visual Studio web service test page. Then learn how ASP.NET allows many .NET data types to be returned from a web service. Create a business class library project and then use a class in that project as a return value from a web service by serializing the custom business object instance. Finally, see how to consume a web service from an ASP.NET web site. [▶ Watch video (33 minutes)](https://channel9.msdn.com/Blogs/ASP-NET-Site-Videos/how-do-i-create-and-call-a-simple-web-service-in-aspnet)