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 are session state modes? List some of the important session state modes of asp.net.

537


What is comparevalidator?

525


What is ispostback property?

503


What are the differences between the response.write() and response.output.write()?

537


Differentiate between authentication and authorization.

565






Explain difference betn dataset and recordset?

534


What is the maximum number of classes that can be contained in one dll file?

683


Explain the asp.net page life cycle.

558


Explain the role of global.asax?

553


What are the validation controls available in ASP.NET?

543


Why asp.net is used?

559


How to include silver light .xap page into asp.net web application and what is the purpose of using silverlight application?

2240


How to disable cut, copy and paste in TextBox using jQuery in asp.net?

636


What is application state?

516


Explain login controls.

620