473,383 Members | 1,733 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Web services and security

Im new with c# and webservices, but i have made a webservice thats
accessing my database and returns some SQL query results in a
XML-string. But i would like some kind of login/password authentication,
since i want to control who has access to the webservice, is there any
good ways to do this? My first thought was just to add some login/pass
parameters for my web methods, and then do a check. But since everything
is in xml and text, it dosnt seem like very a secure way to transfer the
password. Im sure im not the first one to think of this, so can anyone
tell me how people usually do this?

Thanks,
Tom
Nov 15 '05 #1
1 1046
If you download the Web Services Extensions, you can use the wrapper classes
they have for WS-Security to allow encrypted or authenticated messages to be
passed. (Authentication is handled in the SOAP header, rather than the SOAP
body, and you'll be working with standards.) You can also do this manually,
if you would like, but this makes it much easier.

--
Chris Jackson
Software Engineer
Microsoft MVP - Windows Client
Windows XP Associate Expert
--
More people read the newsgroups than read my email.
Reply to the newsgroup for a faster response.
(Control-G using Outlook Express)
--

"Tom Jelen" <to**@pbk.dk> wrote in message
news:c2***********@gnd.k-net.dk...
Im new with c# and webservices, but i have made a webservice thats
accessing my database and returns some SQL query results in a XML-string.
But i would like some kind of login/password authentication, since i want
to control who has access to the webservice, is there any good ways to do
this? My first thought was just to add some login/pass parameters for my
web methods, and then do a check. But since everything is in xml and text,
it dosnt seem like very a secure way to transfer the password. Im sure im
not the first one to think of this, so can anyone tell me how people
usually do this?

Thanks,
Tom

Nov 15 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Bill Sonia | last post by:
I've written a Windows Service to send e-mails on events like OnStart, OnStop, OnShutDown using System.Web.Mail. It works for everything but OnShutdown. My guess is that for OnShutDown, once my...
13
by: david | last post by:
I met the security problem. I have developed the form based security for ASP.NET appliation. However, it seems that my window based client for my Web services application can not access to the...
7
by: Magdelin | last post by:
Hi, My security team thinks allowing communication between the two IIS instances leads to severe security risks. Basically, we want to put our presentation tier on the perimeter network and the...
0
by: juchytil | last post by:
We created a C# Windows forms application and put the .EXE on our web server. We can download the executable from the web server to a desktop and it will display OK. When we click a button that...
1
by: Rory Becker | last post by:
Does anyone have any links to information regarding the security of ADO.Net Data Services (Astoria)? How to close down access to given areas? How to default to no access and open up access...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.