Hello Ashish,

In order to complement the previously answer from Bauer, please take a look
here:
http://wiki.apache.org/ws/FrontPage/Axis/JavaTimeout

Hope this helps.

José Ferreiro

On Wed, Sep 30, 2009 at 8:40 PM, Ashish Kulkarni <
ashish.kulkarn...@gmail.com> wrote:

> HiThanks, do you have example of getting MessageContext and setting this
> message context to stub, all i have in my program is
>
> ExecutePortTypeBindingStub stub = new ExecutePortTypeBindingStub(new
> URL(endPoint), null);
> stub.callMethod(parameter)
>
>
>
> On Wed, Sep 30, 2009 at 1:34 PM, Bauer Horscht <bauer.hors...@gmx.de>wrote:
>
>> In a custom handler, you can directly set it on the MessageContext object
>> (mc):
>>
>> mc.setTimeout(120*1000);   //120 seconds
>>
>>
>>
>> Ashish Kulkarni schrieb:
>>
>>> Hi
>>> How do we set connection timeout in axis 1.4 web service client, i think
>>> default is 10 minutes, I want to timeout if web service does not respond in
>>> 2 minutes, how can i do so
>>>
>>> --
>>> Ashish
>>> www.ayurwellness.com <http://www.ayurwellness.com>
>>> www.mysoftwareneeds.com <http://www.mysoftwareneeds.com>
>>>
>>
>
>
> --
> Ashish
> www.ayurwellness.com
> www.mysoftwareneeds.com
>



-- 
José Ferreiro
Systems Analysis and Design Specialist
MSc in Communication Systems, EPFL.

"Think little goals and expect little achievements. Think big goals and win
big success."  David Joseph Schwartz

Reply via email to