Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Problem with WebServices

Reply
Thread Tools

Problem with WebServices

 
 
Asier
Guest
Posts: n/a
 
      07-28-2004
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





 
Reply With Quote
 
 
 
 
Bharat Biyani
Guest
Posts: n/a
 
      07-30-2004
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 ()
http://www.orcim.com



"Asier" wrote:

> 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
>
>
>
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Java 6 webservices and .NET windows mobile timeout problem mkuzen Java 0 03-03-2009 07:07 PM
asp.net 2.0 webservices deployment problem linda.chen@faa.gov ASP .Net 0 07-18-2007 11:41 AM
asp.net 2.0 webservices deployment problem linda.chen@faa.gov ASP .Net 1 07-17-2007 07:44 PM
Webservices problem: NullPointerException. (Axis, JBoss 4.01, Eclipse) F Java 0 02-22-2007 09:16 PM
File downloads problem. (via webservices) bluewind44 ASP .Net 3 10-12-2005 02:30 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57