how we Creating a Web Service

Answer Posted / merinkmathew

We are going to use C# to create a Web Service
called "SecurityWebService." A Web Service file will have
an .ASMX file extension.
The first line of the file will look like

<%@ WebService Language="C#" class="SecurityWebService" %>

This line will instruct the compiler to run on Web Service
mode and the name of the C# class. We also need to access
the Web Service namespace. It is also a good practice to
add a reference to the System namespace.
using System;
using System.Web.Services;

The SecurityWebService class should inherit the
functionality of the Web Services class. Therefore, we put
the following line of code:
public class SecurityWebService : WebService

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is asp.net core faster?

738


What is the difference between session and viewstate?

699


How would ASP and ASP.NET applications run at the same time on the same server?

2158


COM+ Used ________________ Isolation Level

1701


What is GAC in ASP.NET 2.0

776






What is the procedure to create the environment for asp.net? : asp.net mvc

691


How can you apply a theme to your asp.net application?

714


What is in a session cookie?

700


What is the difference between equals() and == in c#?

733


Where web.config file is used?

742


What is event bubbling?

773


What is the difference between response.redirect and server.transfer?

718


Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc

736


How do I force the dispose method to be called automatically, as clients can forget to call dispose method?

693


To redirect the user to another page which method do we use without performing a round trip to the client?

708