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

Explain the use of fragment caching.

0 Answers  


repeater and gridview diff? Why is repeater fast than gridview?

3 Answers   TCS,


What is inproc mode in session?

0 Answers  


Differentiate session and cookie

1 Answers  


Exception handling

2 Answers   Syntel,






How you can return View from ASP.NET Web API method?

0 Answers  


Describe the role of inetinfo.exe, aspnet_isapi.dll andaspnet_wp.exe

1 Answers  


What are ASHX files?

0 Answers   HCL,


Explain form level validation and field level validation?

0 Answers  


What kind of programming language is ASP.NET?

0 Answers   3i Infotech,


Explain the differences between Server-side and Client-side code?

2 Answers  


what are webservices?In which circumstances we can go for webservices?

3 Answers   Microsoft,


Categories