473,386 Members | 1,694 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,386 software developers and data experts.

Some webservice connections

1. Can I use SSL for my web services?
2. How can implement some kind of security to my web services? My idea is to
implement some kind of licensing or user/password authentication for an web
service.
3. Do I have to make my web service multi threaded or IIS takes care for
simultaneous requests?
(I mean not multi threaded for accepting connections, that is done by
IIS, but multi threaded to the things it does, like file operations,
database connections and so on.)
Nov 18 '05 #1
5 1403
Hi,

1. Absolutely.
2. See:
http://msdn.microsoft.com/library/en...ebServices.asp
(a little bit old, but gives the basics)
and also have a look at the Web Services Enhancements website:
http://msdn.microsoft.com/webservices/building/wse/
3. It is rather a design question you're asking, the answer is - it depends
on the particular case/situation.

Hope this helps
Martin Dechev
ASP.NET MVP
--
PS: Imame si i bg newsgroup-i: microsoft.public.bg.developer &
microsoft.public.bg.itspecialist ;)

"Nikolay Petrov" <jo******@mail.bg> wrote in message
news:O4**************@TK2MSFTNGP10.phx.gbl...
1. Can I use SSL for my web services?
2. How can implement some kind of security to my web services? My idea is to implement some kind of licensing or user/password authentication for an web service.
3. Do I have to make my web service multi threaded or IIS takes care for
simultaneous requests?
(I mean not multi threaded for accepting connections, that is done by
IIS, but multi threaded to the things it does, like file operations,
database connections and so on.)

Nov 18 '05 #2
3) IIS and the ASP.NET runtime will manage simultaneous connections -
your app is multithreaded by default. This doesn't mean two
connections can both open the same file for writing at the same time -
the file system is an example of something where you have to manage
concurrent access. A database, on the other hand, is very good at
concurrent access. Your app can have multiple connections to the
database and the database engine will manage concurrent access to a
table or row (though it is possible to deadlock if queries are not
written carefully).

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 18 Oct 2004 10:26:44 +0300, "Nikolay Petrov"
<jo******@mail.bg> wrote:
1. Can I use SSL for my web services?
2. How can implement some kind of security to my web services? My idea is to
implement some kind of licensing or user/password authentication for an web
service.
3. Do I have to make my web service multi threaded or IIS takes care for
simultaneous requests?
(I mean not multi threaded for accepting connections, that is done by
IIS, but multi threaded to the things it does, like file operations,
database connections and so on.)


Nov 18 '05 #3
I was wondering is there going to be some lag if two users access the web
service at the same time.
If IIS and and ASP .NET manage this, I don't need to make all my web methods
threaded, right?

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:3m********************************@4ax.com...
3) IIS and the ASP.NET runtime will manage simultaneous connections -
your app is multithreaded by default. This doesn't mean two
connections can both open the same file for writing at the same time -
the file system is an example of something where you have to manage
concurrent access. A database, on the other hand, is very good at
concurrent access. Your app can have multiple connections to the
database and the database engine will manage concurrent access to a
table or row (though it is possible to deadlock if queries are not
written carefully).

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 18 Oct 2004 10:26:44 +0300, "Nikolay Petrov"
<jo******@mail.bg> wrote:
1. Can I use SSL for my web services?
2. How can implement some kind of security to my web services? My idea is
to
implement some kind of licensing or user/password authentication for an
web
service.
3. Do I have to make my web service multi threaded or IIS takes care for
simultaneous requests?
(I mean not multi threaded for accepting connections, that is done by
IIS, but multi threaded to the things it does, like file operations,
database connections and so on.)

Nov 18 '05 #4
Hi Nikolay:

In general you will not see a lag from two users hitting the service
at the same time - but this is where you have to look at a specific
application and environment to know what will happen. At some point
there will be a lag (10, 100, 10,000 users) but it depends on the CPU,
the RAM, and the actions of the code.

I'm not sure what you mean by "threaded" - there can be a thread per
request inside of the method. You might need to make your methods
thread-safe however.. In general - if the method uses only local
variables and parameters it is safe. If the method uses any static or
shared members you might need to synchronize threads to prevent
erroneous results. This is another case where you have to look at
specific code to make a 100% yes/no statement.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 18 Oct 2004 20:54:05 +0300, "Nikolay Petrov"
<jo******@mail.bg> wrote:
I was wondering is there going to be some lag if two users access the web
service at the same time.
If IIS and and ASP .NET manage this, I don't need to make all my web methods
threaded, right?

Nov 18 '05 #5
I got the point
Thank you

"Scott Allen" <bitmask@[nospam].fred.net> wrote in message
news:op********************************@4ax.com...
Hi Nikolay:

In general you will not see a lag from two users hitting the service
at the same time - but this is where you have to look at a specific
application and environment to know what will happen. At some point
there will be a lag (10, 100, 10,000 users) but it depends on the CPU,
the RAM, and the actions of the code.

I'm not sure what you mean by "threaded" - there can be a thread per
request inside of the method. You might need to make your methods
thread-safe however.. In general - if the method uses only local
variables and parameters it is safe. If the method uses any static or
shared members you might need to synchronize threads to prevent
erroneous results. This is another case where you have to look at
specific code to make a 100% yes/no statement.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 18 Oct 2004 20:54:05 +0300, "Nikolay Petrov"
<jo******@mail.bg> wrote:
I was wondering is there going to be some lag if two users access the web
service at the same time.
If IIS and and ASP .NET manage this, I don't need to make all my web
methods
threaded, right?


Nov 18 '05 #6

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

Similar topics

3
by: Manoj Kumar | last post by:
I have a web service that gets data from clients. It appears that each time a client connects to the webservice, a new connection/session is created on the server side (IIS 5.1). After 10 calls to...
3
by: Johan Johansson (Sweden) | last post by:
I wonder why it is that no more than 10 clients can access a webservice at a time, and how to increase that number. The eleventh client get a Http 403.9 (Access forbidden : To many users are...
8
by: kenneth fleckenstein nielsen | last post by:
hi guru's I want to restart my webservice when ever it throws an exception that isn't cought. can i do that by web.config or iss or how ??
1
by: Gary Howlett | last post by:
Hi Im using VS 2005 C#; Is there any issues I should be aware of if I add my webservice as a static variable to my main class? The reason im asking is should I create an object of my...
1
by: TroutyJoe | last post by:
Hi all, For performance reasons, I would like to restrict concurrent request to a WebService that I provide, so that only a single request to a WebService can run at any time, with all other...
1
by: Goose14 | last post by:
I have a client application and a webservice. Both are in the same solution. If I reference the local webservice and run, and step into the webservice no problem. My question is, when I want to...
6
by: Steve Ricketts | last post by:
I have a webservice written in VB.net that opens a connection to SQL Server 2000 with a connection string. The connection remains open for the life of the web service so the ADODB.connection is...
2
by: =?Utf-8?B?TGFycnlLdXBlcm1hbg==?= | last post by:
Our WebDev team seems to have found a problem that exposes a bug in .NET 2.0. This problem can be shown when trying to access a WebService using SSL and through a proxy server after using the...
7
by: Amirallia | last post by:
Hi, I consume my webservice with the IE browser and all is ok when I call it with one browser. But when I call it a the same time with two browsers, the IE page tells me that the apllication...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.