Re: How can I cancel a web service call?
If you want to cancel the call from the client side, do call.setTimeout(mSecToWait) before making the call. -K --- HOFFMANN Camille <[EMAIL PROTECTED]> wrote: > Hi, > > Im currently working on a simple web service working with Axis 1.2.1 > and Tomcat 5. > This web service is working perfectly but I have a problem with long > running calls. > In fact I would like to know how I can cancel a call which is taking to > much time? > > Did anybody have this problem before or know how to do this? > > Thanks, > > Camille > > > Ketan Deshpande [EMAIL PROTECTED] __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
RE: How can I cancel a web service call?
Hi, In the simplest case you can send a unique id as an additional parameter to the first call. If you want to abort the call you send the id to the abortion service. You have to register the thread servicing the first call in a central map with the id. Then you can lookup the thread in the second service and call Thread.interrupt(). Best regards, Günter > -Original Message- > From: HOFFMANN Camille [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 24, 2005 11:46 AM > To: axis-user@ws.apache.org > Subject: Re: How can I cancel a web service call? > > Hi, > > That's seems a good idea but how can I know which thread I > should abort. > I mean if I running my first web service and it is too long I want to > abort and call a second web service doing that. But how can I > give the > second one an unique parameter on the first one as the first is still > running and did give me back anything? > > I don't know if I 'm clear ... do you have any idea of this ? > > Thanks > > Camille > > ## > > > Hi! > > My approach would be to have a second service that is > provided with some > unique parameters of the first (long running) call, that internally > aborts the first call with "traditional" thread communication means. > > Another approach would be to decompose the long running WS > into smaller > fractions if that is possible and feasible. > > Best regards, > > -- > DI Günter Grossberger > Consultant Tel: +43 1 329 50 161 > Software AG Österreich Fax: +43 1 329 50 171 > Guglgasse 7-9 GSM: +43 676 833 29 261 > 1030 Wien http://www.softwareag.com/austria > > > > -Original Message----- > > From: HOFFMANN Camille [mailto:[EMAIL PROTECTED] > > Sent: Thursday, November 24, 2005 11:21 AM > > To: axis-user@ws.apache.org > > Subject: How can I cancel a web service call? > > > > Hi, > > > > I'm currently working on a simple web service working with > Axis 1.2.1 > > and Tomcat 5. > > This web service is working perfectly but I have a problem > with long > > running calls. > > In fact I would like to know how I can cancel a call which is > > taking to > > much time? > > > > Did anybody have this problem before or know how to do this? > > > > Thanks, > > > > Camille > > > > > > > > >
Re: How can I cancel a web service call?
Hi, That's seems a good idea but how can I know which thread I should abort. I mean if I running my first web service and it is too long I want to abort and call a second web service doing that. But how can I give the second one an unique parameter on the first one as the first is still running and did give me back anything? I don't know if I 'm clear ... do you have any idea of this ? Thanks Camille ## Hi! My approach would be to have a second service that is provided with some unique parameters of the first (long running) call, that internally aborts the first call with "traditional" thread communication means. Another approach would be to decompose the long running WS into smaller fractions if that is possible and feasible. Best regards, -- DI Günter Grossberger Consultant Tel: +43 1 329 50 161 Software AG Österreich Fax: +43 1 329 50 171 Guglgasse 7-9 GSM: +43 676 833 29 261 1030 Wien http://www.softwareag.com/austria > -Original Message- > From: HOFFMANN Camille [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 24, 2005 11:21 AM > To: axis-user@ws.apache.org > Subject: How can I cancel a web service call? > > Hi, > > I'm currently working on a simple web service working with Axis 1.2.1 > and Tomcat 5. > This web service is working perfectly but I have a problem with long > running calls. > In fact I would like to know how I can cancel a call which is > taking to > much time? > > Did anybody have this problem before or know how to do this? > > Thanks, > > Camille > > >
RE: How can I cancel a web service call?
Hi! My approach would be to have a second service that is provided with some unique parameters of the first (long running) call, that internally aborts the first call with "traditional" thread communication means. Another approach would be to decompose the long running WS into smaller fractions if that is possible and feasible. Best regards, -- DI Günter Grossberger Consultant Tel: +43 1 329 50 161 Software AG Österreich Fax: +43 1 329 50 171 Guglgasse 7-9 GSM: +43 676 833 29 261 1030 Wien http://www.softwareag.com/austria > -Original Message- > From: HOFFMANN Camille [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 24, 2005 11:21 AM > To: axis-user@ws.apache.org > Subject: How can I cancel a web service call? > > Hi, > > I'm currently working on a simple web service working with Axis 1.2.1 > and Tomcat 5. > This web service is working perfectly but I have a problem with long > running calls. > In fact I would like to know how I can cancel a call which is > taking to > much time? > > Did anybody have this problem before or know how to do this? > > Thanks, > > Camille > > >
How can I cancel a web service call?
Hi, I’m currently working on a simple web service working with Axis 1.2.1 and Tomcat 5. This web service is working perfectly but I have a problem with long running calls. In fact I would like to know how I can cancel a call which is taking to much time? Did anybody have this problem before or know how to do this? Thanks, Camille