Return-Path: Delivered-To: apmail-ws-axis-user-archive@www.apache.org Received: (qmail 9089 invoked from network); 24 Jun 2009 05:48:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 24 Jun 2009 05:48:06 -0000 Received: (qmail 18204 invoked by uid 500); 24 Jun 2009 05:48:14 -0000 Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 18132 invoked by uid 500); 24 Jun 2009 05:48:14 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 18123 invoked by uid 99); 24 Jun 2009 05:48:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2009 05:48:14 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of amardeepsinghkhera@gmail.com designates 74.125.46.152 as permitted sender) Received: from [74.125.46.152] (HELO yw-out-1718.google.com) (74.125.46.152) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Jun 2009 05:48:06 +0000 Received: by yw-out-1718.google.com with SMTP id 5so246547ywr.88 for ; Tue, 23 Jun 2009 22:47:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=hQhsMqLJcNn1DpoEF/qCwzVbYTKmYIhdvUM0RDpmr/o=; b=RyOSmEy1tUz94OpXBc7PrTeqMDYSxkDQAA7c6Uvhma32MJoHCdQuByhJyyroU0nDmi njDTzuJgue4PfmXfx+cVTL842pqxv1QN9tteIatNMLso4EW/9u+jmpd3YArtdx4ZHWsi sEwjrsp8WtDjjamLAQ7rACK28UxvKnC6+vSWo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=fLqYYRqWPPwucdtZeWLMd54pChtK80IyV/Z/HzvDpC/SnCiLoYgeYM+5TNg/lQ6Hji whSTr1pZPicr6MLllWcsMVJ7My+mnuF9YXrua8nMxjYxglv0CaoPvB3WrT8hCgPQbx0W LDizkD6J5qsWI8iyNyiBo+gxvyldwffLyQLNU= MIME-Version: 1.0 Received: by 10.231.38.129 with SMTP id b1mr324734ibe.20.1245822465434; Tue, 23 Jun 2009 22:47:45 -0700 (PDT) In-Reply-To: <25c621c50906231450qad5b1e5mb2109cd494c4a00b@mail.gmail.com> References: <878c6f8e0906231140j6a4f9c2agcf81cafa0974dbd7@mail.gmail.com> <25c621c50906231450qad5b1e5mb2109cd494c4a00b@mail.gmail.com> Date: Wed, 24 Jun 2009 11:17:45 +0530 Message-ID: <75c7f8780906232247v7483446bn89cb9315dffb41cc@mail.gmail.com> Subject: Re: axis web service client socket timeout From: amardeep singh khera To: axis-user@ws.apache.org Content-Type: multipart/alternative; boundary=000325579f728165a7046d11a5cd X-Virus-Checked: Checked by ClamAV on apache.org --000325579f728165a7046d11a5cd Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi , You can specify socket time out using following lines of code in your client.. ServiceClient client = stub._getServiceClient(); Options opt = client.getOptions(); opt.setTimeOutInMilliSeconds(600000); client.setOptions(opt); Thanks Amardeep SIngh Khera On Wed, Jun 24, 2009 at 3:20 AM, Frederick G. Burkley wrote: > Look at the Option (or it might be Options) class. It has a method > something like setTimeout(). > > > > On Tue, Jun 23, 2009 at 2:40 PM, Ashish Kulkarni < > ashish.kulkarni13@gmail.com> wrote: > >> HiHow to specify socket timeout when calling web service using apache >> axis client, i believe default time is 10 minutes. >> Is it possible to set this time with some run time parameter, or do we >> need some programming change to do so >> >> Ashish >> > > --000325579f728165a7046d11a5cd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi ,

You can specify socket time out using following lines of code i= n your client..

=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 ServiceClient clie= nt =3D stub._getServiceClient();
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 Options o= pt =3D client.getOptions();
=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 opt.setTimeOut= InMilliSeconds(600000);
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 client.setOptions(opt);

Thanks
= Amardeep SIngh Khera

On Wed, Jun 24, 2009= at 3:20 AM, Frederick G. Burkley <burkley@gmail.com> wrote:
Look at the Optio= n (or it might be Options) class.=A0 It has a method something like setTime= out().



On Tue,= Jun 23, 2009 at 2:40 PM, Ashish Kulkarni <ashish.kulkarni13@gma= il.com> wrote:
Hi
How to spe= cify socket timeout when calling web service using apache axis client, i be= lieve default time is 10 minutes.
Is it possible to set this time with some run time parameter, or do we= need some programming change to do so

Ashish


--000325579f728165a7046d11a5cd--