Welcome to the FoxLearn
Today we will learn how to create a web service
First, We will design a simple UI that allows you to add, subtract, multiply and divide the numbers
You need to create a new web site project, then add a web service to the new project
Web services are open standard (XML, SOAP, HTTP etc.) based Web applications that interact with other web applications for the purpose of exchanging data
Web Services can convert your existing applications into Web applications
When you create a Web service in managed code
you indicate the methods that are available through that Web service by placing the WebMethod attribute before the method declaration of a Public method
Private methods cannot serve as the entry point for a Web service although they can be in the same class and the Web service code can call them
The WebMethod attribute must be applied to each public method that is available as part of the Web service
You can set start page to your web service
You need to copy your URL web service, from windows form project you can add a reference to your web service
You need to create an instance to web service client each time you call the methods web service
Thank you for watching this video