You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by ajith <aj...@asianetindia.com> on 2003/04/07 18:41:51 UTC

Installation problem

Hi All,

   I need one help. I am new to soap. I need to develop a service in Apache.
The client I intend to use is one using pocket soap.

The service I intend to use should be able to know if there is not a valid
connection b/w the server and the client when a method is invoked at the
server side.
For eg: suppose I have the following code in the server side
public class Hello {
 public String sayHello(String name) {
   return "Hello " + name;
 }
}
Here for the providerclass Hello, I have exposed an function sayHello.
Suppose while executing sayHello the n/w connection breaks. So the response
won't be delivered to the client. In this case is there a way or any
exception that I can catch by which I know that the response has not been
delivered to the client and I can do some operations at the server ?
Does changing the scope from application to request help ?

Please give me your suggestions

Thanx in advance
Ajith


Re: Installation problem

Posted by Scott Nichol <sn...@scottnichol.com>.
Your services run in the context of a Java servlet.  I don't know how 
from a servlet you could determine whether the client is still 
connected to the Web server.  And, of course, even if the client 
appears to be connected, you cannot confirm that the connection still 
exists until you try to write something over the connection.

On 7 Apr 2003 at 22:11, ajith wrote:

> Hi All,
> 
>    I need one help. I am new to soap. I need to develop a service in Apache.
> The client I intend to use is one using pocket soap.
> 
> The service I intend to use should be able to know if there is not a valid
> connection b/w the server and the client when a method is invoked at the
> server side.
> For eg: suppose I have the following code in the server side
> public class Hello {
>  public String sayHello(String name) {
>    return "Hello " + name;
>  }
> }
> Here for the providerclass Hello, I have exposed an function sayHello.
> Suppose while executing sayHello the n/w connection breaks. So the response
> won't be delivered to the client. In this case is there a way or any
> exception that I can catch by which I know that the response has not been
> delivered to the client and I can do some operations at the server ?
> Does changing the scope from application to request help ?
> 
> Please give me your suggestions
> 
> Thanx in advance
> Ajith
> 
> 


Scott Nichol

Do not reply directly to this e-mail address,
as it is filtered to only receive e-mail from
specific mailing lists.