Problem with WebServices

A

Asier

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
 
B

Bharat Biyani

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top