Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > How to make SoapHttpClientProtocol instance send each request on different TCP connection?

Reply
Thread Tools

How to make SoapHttpClientProtocol instance send each request on different TCP connection?

 
 
Morgan Cheng
Guest
Posts: n/a
 
      06-22-2007
There are multiple clients to invoke a web service deployed in a
cluster of server. Each client is using SoapHttpClientProtocol
instance. I found that if the invocation is continuous,
SoapHttpClientProtocol doesn't close TCP connection. It just reuse one
single TCP connection to call target web service.

Now, there are BigIP added between client and server to do load
balancing. If the TCP connection doesn't close, LB is meaningless. So,
how to make SoapHttpClientProtocol init a new TCP connection for each
service request?

Thanks,

 
Reply With Quote
 
 
 
 
John Saunders [MVP]
Guest
Posts: n/a
 
      06-22-2007
"Morgan Cheng" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) oups.com...
> There are multiple clients to invoke a web service deployed in a
> cluster of server. Each client is using SoapHttpClientProtocol
> instance. I found that if the invocation is continuous,
> SoapHttpClientProtocol doesn't close TCP connection. It just reuse one
> single TCP connection to call target web service.
>
> Now, there are BigIP added between client and server to do load
> balancing. If the TCP connection doesn't close, LB is meaningless.



Is load balancing truly meaningless in this case, or does it simply mean
something a little different from what you expect? Does the BigIP not
distribute connections across the nodes? That is, if you had five servers
and five clients, wouldn't it tend to distribute them one per server?
Wouldn't the next five clients also be distributed?

I haven't used that particular device, so I don't know.
--
John Saunders [MVP]


 
Reply With Quote
 
 
 
 
Morgan Cheng
Guest
Posts: n/a
 
      06-22-2007
On Jun 22, 10:46 pm, "John Saunders [MVP]" <john.saunders at
trizetto.com> wrote:
> "MorganCheng" <(E-Mail Removed)> wrote in message
>
> news:(E-Mail Removed) oups.com...
>
> > There are multiple clients to invoke a web service deployed in a
> > cluster of server. Each client is usingSoapHttpClientProtocol
> > instance. I found that if the invocation is continuous,
> >SoapHttpClientProtocoldoesn't close TCP connection. It just reuse one
> > single TCP connection to call target web service.

>
> > Now, there are BigIP added between client and server to do load
> > balancing. If the TCP connection doesn't close, LB is meaningless.

>
> Is load balancing truly meaningless in this case, or does it simply mean
> something a little different from what you expect? Does the BigIP not
> distribute connections across the nodes? That is, if you had five servers
> and five clients, wouldn't it tend to distribute them one per server?
> Wouldn't the next five clients also be distributed?
>


In our config, BigIP will distribute connection evenly, but only
distribute at the time TCP connection is generated.
Since the requests are continuous, SoapHttpClientProtocol will keep
connection alive and reuse single TCP connection to backend web
service. As a result, one TCP connection is created and doesn't
release. So, BigIP distribution works only once for each client.
That's not what I expect.
I want SoapHttpClientProtocol create one TCP connection, send Soap on
HTTP message in that TCP connection, and then close it. For the next
request, just repeat the three steps.




> I haven't used that particular device, so I don't know.
> --
> John Saunders [MVP]



 
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
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
send tcp raw socket (bogus tcp header length) Tiger C Programming 5 05-01-2006 05:53 AM
Pre-Send Request Headers, Pre-Send Request Content =?Utf-8?B?S2V2aW4gQnVydG9u?= ASP .Net 0 12-31-2004 06:29 PM
C# Client (SoapHttpClientProtocol) and Secure Web Service todd ASP .Net Web Services 1 05-28-2004 08:26 PM
SoapHttpClientProtocol and Keep-Alive Scott McFadden ASP .Net Web Services 0 10-08-2003 04:50 PM



Advertisments