Library tutorials & articles
Building XML Web Services Using C# and ASP.NET
Introduction
The term "web service" has been used quite frequently lately: you hear people saying how good web services are and how they will dominate the future of software development, but what exactly are web services and how can we create them?
In this article we will explore the features of Microsoft ASP.NET Web Services, more specifically how to build web services. A real world example extending what I discuss in this article will be shown at the end of this article. It will utilise many things that you will learn throughout this article.
To understand this article fully, you are required to have some previous knowledge of C#, ASP.NET and ADO.NET. To try the examples shown in this article for yourself, you will need the .NET Framework and Internet Information Server 5 or higher installed on your Windows NT/XP/2000 PC.
Related articles
Related discussion
-
Create a Site Search Engine in ASP.NET
by Soundguy53 (64 replies)
-
Read HSQLDB data into a webpage
by joe90 (3 replies)
-
Creating a Windows Service in VB.NET
by Templario55 (107 replies)
-
Using ADO.NET with SQL Server
by Manjot Bawa (23 replies)
-
High-Performance .NET Application Development & Architecture
by Manjot Bawa (0 replies)
Related podcasts
-
Writing FaceBook Applications with .NET - Interview with Mel Sampat, author of Outsync
In this episode, Scott talks with Mel Sampat, a Program Manager at Microsoft who's written OutSync, an application that syncs faces between Outlook, Facebook, and indirectly Windows SmartPhones. They chat about what it takes to write your own FaceBook application using ASP.NET or WinForms.
Events coming up
-
Jul
13
SmartClient
California, United States
A Smart Client is an application that uses local processing, consumes XML Web Services and can be deployed and updated from a centralized server. While the .NET Framework (Windows Forms) and the .
C:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\Temporary ASP.NET FilesNET
Just wanted to mention this in case someone look for an answer for this.
Hi....
You have to write the query to check the password. It will be better if you use StoredProcedure ..
Sample of the stored procedure
CREATE PROCEDURE _checkpass
(
@password varchar(10)
)
As
select password from table where password=@password
if @@rowcount<1
select @status=0
else
select@status=1
Go
Once you write the above stored pro with sql server
user the following code... in your application
myCommand = new SqlCommand("_checkpass", myConnection);
myCommand.CommandType = CommandType.StoredProcedure;
myCommand.Parameters.Add(new SqlParameter("@password", SqlDbType.VarChar, 50));
myCommand.Parameters["@password"].Value =txtpass.Value;
myCommand.Connection.Open();
try
{
myCommand.ExecuteNonQuery();
if((int)status.Value==0)
{
Go Ahead........
}
else
{
Stopped Functioning
}
silly question, but as I am new to SQL and C#, how would I be able to check an existing password, that was previously added to your database table and check the result to athenticate the user?
This thread is for discussions of Building XML Web Services Using C# and ASP.NET .