how we Creating a Web Service



how we Creating a Web Service..

Answer / 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

More ASP.NET Interview Questions

Which method has beenintroduced in asp.net 4.0 to redirect a page permanently?

0 Answers  


Have u used webcontrols?Tell me something about these?

2 Answers   Microsoft,


Is it possible to add aspx.vb file in to C# Web Project? If so how can i use the vb file in the C# Web project?

3 Answers  


How can you execute stored procedure from windows application?

1 Answers   Microsoft,


How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.

0 Answers  






Is global asax mandatory?

0 Answers  


How can you implement the postback property of an asp.net control?

0 Answers  


Where session variables are stored?

0 Answers  


what is state management,what is the purpose of it,how it will be implemented in real time?

2 Answers  


What is the use of dispose method?

0 Answers  


What is the main function of url routing system in asp.net mvc? : asp.net mvc

0 Answers  


What is Web Server Control Templates.?

0 Answers   MCN Solutions,


Categories