Groups | Blog | Home
all groups > asp.net webservices > july 2004 >

asp.net webservices : Problem with WebServices


Asier
7/28/2004 3:47:07 PM
Hello,

I' ve created a new webService Project and run with "Hello World"
example. It run fine. After it, i created a Winform project and included a
webReference to this webservice. I run it and run fine.
Ok, no problems...
Yes I have a problem. When i run my WinForm project and execution go
into webService, in this momento no other program can run this webservice
because is locked.

What is the problem? Can 2 programs run then same WebMethod at the same
time?
Thanks.

Asier




Bharat Biyani
7/30/2004 3:03:01 AM
Hi Asier,

You are not able to perform any activity on the windows form since the webrequest call to the webservice is a blocking call. Which means once the request is made and till the response is received all activity of the thread which called the web request ceases. To get around this problem you will have to call your web service in an asynchronous fashion.
You can have a look at the foll. URL to see how web services can be called asynchronously.
http://www.developer.com/net/article.php/1464751

Any number of programs can call the web method at the same time. It depends upon how much load the web server can bear.
--
Bharat Biyani (bsb@orcim.com)
http://www.orcim.com



[quoted text, click to view]
AddThis Social Bookmark Button