473,386 Members | 1,886 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,386 software developers and data experts.

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 2996
"dhow" <dh**@discussions.microsoft.com> wrote in message
news:AE**********************************@microsof t.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
ServicePointManager.DefaultConnectionLimit property.

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

"Sami Vaaraniemi" wrote:
"dhow" <dh**@discussions.microsoft.com> wrote in message
news:AE**********************************@microsof t.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
ServicePointManager.DefaultConnectionLimit 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
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...
11
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...
2
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...
7
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
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...
1
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,...
1
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...
3
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...
0
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...
6
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...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...

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.