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 Assemblies?,Difference between Panel and GroupBox?,Differences between ASP and ASP.NET?

1 Answers  


How to rename a table using sql queries?

0 Answers  


Explain how can we inherit a static member?

0 Answers  


If we write return statement in finally block will it works fine or throws any error?

1 Answers   Patni,


What is a Windows Service and how does its life cycle differ from a standard EXE?

2 Answers  






What is an example of an application service provider?

0 Answers  


How .net CLR works with n-tier application

4 Answers   HCL, Hughes,


Which authentication uses a combination of windows and iis authentication?

0 Answers  


What is protected configuration?

0 Answers  


In a page I have gridview with options of select and delete using hyperlink when I am selecting any one of then it has to open another page how can it?

0 Answers  


What is .net remoting?

0 Answers  


What's the ASP.Net Application life cycle?

0 Answers   Wipro,


Categories