473,657 Members | 2,554 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

WebService Client with multi-thread

I hava a simple webservice(Just sleep for 30 seconds) which is developed
using Java and deployed on WebLogic,and I aslo make a client using VB.net. In
the client I create 5 threads to call the webservice. The question is why
only 2 threads are successe to call the webservice, the others call the
webservice method but their status is waiting.
Nov 23 '05 #1
2 3017
"dhow" <dh**@discussio ns.microsoft.co m> wrote in message
news:AE******** *************** ***********@mic rosoft.com...
I hava a simple webservice(Just sleep for 30 seconds) which is developed
using Java and deployed on WebLogic,and I aslo make a client using VB.net.
In
the client I create 5 threads to call the webservice. The question is why
only 2 threads are successe to call the webservice, the others call the
webservice method but their status is waiting.


You are probably observing the HTTP 1.1 limit of at most two simultaneous
calls from one application to one Web Service. If you issue more than two
calls, by default only the first two of them execute and the rest are put to
wait in the client.

The maximun number of simultaneous calls can be changed through the
ServicePointMan ager.DefaultCon nectionLimit property.

Regards,
Sami
Nov 23 '05 #2
Thank u very very much!

"Sami Vaaraniemi" wrote:
"dhow" <dh**@discussio ns.microsoft.co m> wrote in message
news:AE******** *************** ***********@mic rosoft.com...
I hava a simple webservice(Just sleep for 30 seconds) which is developed
using Java and deployed on WebLogic,and I aslo make a client using VB.net.
In
the client I create 5 threads to call the webservice. The question is why
only 2 threads are successe to call the webservice, the others call the
webservice method but their status is waiting.


You are probably observing the HTTP 1.1 limit of at most two simultaneous
calls from one application to one Web Service. If you issue more than two
calls, by default only the first two of them execute and the rest are put to
wait in the client.

The maximun number of simultaneous calls can be changed through the
ServicePointMan ager.DefaultCon nectionLimit property.

Regards,
Sami

Nov 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
768
by: Davie | last post by:
I want to authorise a user of a web service by using the AuthHeaderValue for some reason I keep getting a null reference exception when I try to run the following code: It seems to work fine on a .NET Framework application, but just not on the .NET CF version. Can anyone suggest anything that might be wrong with the code? (I could post the app and webservice, but i was hoping that you might have noticed something from the supplied...
11
3950
by: Andy | last post by:
Make the story short, I have a VB.NET client interface calling .NET webservice, written in VB.NET as well. I am trying to make the client as thin as possible so I let the webservice part to handle most of the things. Currently I have a class called "Product" sitting my webserivce like the following: Code:
2
5701
by: Miguel | last post by:
Hi, I'm developing an application in C# with Windows Forms for my company that is similar to the MSN Messenger. This application uses a webservice for registering users, etc... and as 2 webbrowser controls on it. Besides that i'm using the firewall client for isa server 2004 and it seems that the browsers aren't able to pass thru it... if i disable the firewall the browsers work fine, if i don't, the 2 browsers just stay there...
7
2015
by: Alessandro Benedetti | last post by:
Hi. I'm calling two methods of a .NET Webservice (A) from another Webservice (B). The A Webservice is made like this: public class WSA: System.Web.Services.WebService { private int X = 0;
7
2917
by: Nalaka | last post by:
Hi, I created a sinple web service that returns a dataSet. Then I created a client program that uses this web service (that returns the Dataset). My question is, how did the client figure out to create a "DataSet" as the return type from the webservice?
1
2136
by: Mike9900 | last post by:
I want to use an interface in both the webservice and its client. For example, the web service implements an interface and then the client cast that webservice to the inteface. It seems impossible, but I am wondering if there is a way. The code below shows how I want it: /*INTERFACE*/ public interface IEmployee {
1
1610
by: Mr Bojangles | last post by:
Hi, I want a do the following: From a (client side) web form, post to server side script (I'm using Javascript but anything will do), which in turn--and this is the important bit that I can't find out how to do--calls a webservice on a separate server... Client ASP server (no .net)
3
2231
by: adi | last post by:
Hi I only have this situation at one of my client's site. I install the webservice setup prog. Usually, i may access the asmx file from an IE browser. Not this time. My webservice uses .NET Framework 1.1 The machine is an Windows Server 2003 Standard Edition. The IIS and WWW service is up & running; also run "aspnet_regiis -i" command to make sure IIS is registered with dotnet.
0
2025
by: Daniel Knöpfel | last post by:
Hi We have developed a webservice that was accessed by a fat windows client. A security requirement was that the client authenticates itself by using by providing a client certificate. The webserver (iis) made then sure that only clients providing a valid certificate could connect. (settings: Requeire secure channel, Require client certificates). This worked fine. Due to a request by our client, we are forced to integrate the...
6
2980
by: Peter | last post by:
I have a WebService which returns a List of RunningReport class How do I read this XML data on the client side. How do I convert List<RunningReportfrom the WebService side to List<RunningReporton the client side I have tried the following: List<RunningReportreportList = null; localhost.ReportService localrs = new localhost.ReportService();
0
8392
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8730
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7321
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1950
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.