469,602 Members | 1,650 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,602 developers. It's quick & easy.

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 1282
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Johan Johansson (Sweden) | last post: by
8 posts views Thread by kenneth fleckenstein nielsen | last post: by
1 post views Thread by Gary Howlett | last post: by
1 post views Thread by TroutyJoe | last post: by
1 post views Thread by Goose14 | last post: by
6 posts views Thread by Steve Ricketts | last post: by
2 posts views Thread by =?Utf-8?B?TGFycnlLdXBlcm1hbg==?= | last post: by
7 posts views Thread by Amirallia | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.