473,372 Members | 1,042 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,372 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 1402
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...
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
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: 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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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...

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.