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

Where is session data stored in asp net?

521


How do you declare delegates and are delegates and events one and the same and explain how do you declare delegates and invoke them ?

3424


Which control has default post back is enabled(true)?

613


What is the good practice to implement validations in aspx page?

644


How to comment out asp.net tags?

640






When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?

605


What is a web server? What are the load limits in it?

597


What are the namespace classes used in asp.net mvc? : asp.net mvc

559


What is asp.net futures?

580


What is difference between session and cookies?

559


What is sql data source control in asp.net?

578


Write the different features of a Thread and a Process?

630


What is rending process in ASP.NET?

625


Which method is used to force all the validation controls to run?

560


What is asp.net with mvc? : Asp.Net MVC

527