Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

What is postback request?

931


In a webservice, need to display 10 rows from a table. Which is the best choice among datareader or dataset?

1107


What is an axd file?

1022


Can you explain the basic use of dataview?

1014


Why we use dbms for projects? Why don’t we save any application data in separate files instead of dbms?

961


What type of code, client-side or server-side, is found in a code-behind file of a Web page?

909


What are validator? Name the validation controls in asp.net?

963


How can we call webservices in Banking Applications? and where we are using it?

2003


What is connection pooling and how to enable and disable connection pooling?

959


Why do you use the app_code folder in asp.net?

1039


Explain how asp.net page works?

974


What is the use of placeholder control? Can we see it at runtime?

1019


Can we handle the error and redirect to some pages using web.config?

1549


What is difference between abstract class and an interface?

902


Explain method to handle error using HttpError in Web API?

1003