You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-dev@ws.apache.org by Marios Karagiannopoulos <mk...@teiath.gr> on 2002/10/17 17:06:21 UTC

FW: soap_closesock()??

Hi guys. I'm trying to close all the soap sockets,
that did a SOAP call but I don't know how. I'm working
with Axis API (JAVA).

Thanks 
Marios


Re: soap_closesock()??

Posted by Scott Nichol <sn...@scottnichol.com>.
You may want to look at
org.apache.axis.transport.http.HTTPSender#invoke.  It uses a local
variable "sock" for the socket created by getSocket, calls writeToSocket
and readFromSocket, then exits the scope in which sock is declared.  If
this invoke method is how RPC calls are made, then you don't have any
control over closing the socket; presumably, it will be closed by the
socket implementation when sock is garbage collected.

In the future, you should send Axis quesions to axis-user@xml.apache.org
or axis-dev@xml.apache.org.

Scott Nichol

----- Original Message -----
From: "Marios Karagiannopoulos" <mk...@teiath.gr>
To: <so...@xml.apache.org>
Sent: Thursday, October 17, 2002 11:06 AM
Subject: FW: soap_closesock()??


> Hi guys. I'm trying to close all the soap sockets,
> that did a SOAP call but I don't know how. I'm working
> with Axis API (JAVA).
>
> Thanks
> Marios
>
>
> --
> To unsubscribe, e-mail:   <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>
>
>


Re: soap_closesock()??

Posted by Scott Nichol <sn...@scottnichol.com>.
You may want to look at
org.apache.axis.transport.http.HTTPSender#invoke.  It uses a local
variable "sock" for the socket created by getSocket, calls writeToSocket
and readFromSocket, then exits the scope in which sock is declared.  If
this invoke method is how RPC calls are made, then you don't have any
control over closing the socket; presumably, it will be closed by the
socket implementation when sock is garbage collected.

In the future, you should send Axis quesions to axis-user@xml.apache.org
or axis-dev@xml.apache.org.

Scott Nichol

----- Original Message -----
From: "Marios Karagiannopoulos" <mk...@teiath.gr>
To: <so...@xml.apache.org>
Sent: Thursday, October 17, 2002 11:06 AM
Subject: FW: soap_closesock()??


> Hi guys. I'm trying to close all the soap sockets,
> that did a SOAP call but I don't know how. I'm working
> with Axis API (JAVA).
>
> Thanks
> Marios
>
>
> --
> To unsubscribe, e-mail:   <ma...@xml.apache.org>
> For additional commands, e-mail: <ma...@xml.apache.org>
>
>


--
To unsubscribe, e-mail:   <ma...@xml.apache.org>
For additional commands, e-mail: <ma...@xml.apache.org>