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
What is postback request?
In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?
What is an axd file?
Can you explain the basic use of dataview?
Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?
What type of code, client-side or server-side, is found in a code-behind file of a Web page?
What are validator? Name the validation controls in asp.net?
How can we call webservices in Banking Applications? and where we are using it?
What is connection pooling and how to enable and disable connection pooling?
Why do you use the app_code folder in asp.net?
Explain how asp.net page works?
What is the use of placeholder control? Can we see it at runtime?
Can we handle the error and redirect to some pages using web.config?
What is difference between abstract class and an interface?
Explain method to handle error using HttpError in Web API?