You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@synapse.apache.org by David Champagne <da...@yahoo.com> on 2008/03/05 15:55:49 UTC

web service timeout

Hi,

I am new to Apache Synapse, and I am having some difficulting in
telling synapse that I need to set the timeout for a response from one
of my web services to be more than the default of 60 seconds.  One of
my web services can take a couple of minutes before it returns a
response.  I have tried adding an <endpoint> element to my synapse.xml
file, but this had no effect (see below).  How can I configure this?

<definitions xmlns="http://ws.apache.org/ns/synapse">
 <endpoint name="TestService1">
  <address uri="http://localhost:9000/axis2/services/TestService1">
   <timeout>
    <duration>100000</duration>
    <action>fault</action>
   </timeout>
  </address>
 </endpoint>
</definitions>


      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: web service timeout

Posted by Ruwan Linton <ru...@gmail.com>.
It is nice to hear that you got it to work.

Thanks for the feedback,
Ruwan

On Thu, Mar 6, 2008 at 10:28 AM, David Champagne <
david_e_champagne@yahoo.com> wrote:

> You guys are the best.  It works perfect.  Thank you very much both
> xuhongbo and Ruwan!!!
>
>
> --- Ruwan Linton <ru...@gmail.com> wrote:
>
> > David,
> >
> > I found that xuhongbo is correct on this, you could do this by
> > putting an
> > nhttp.properties file in to the class path (that is to the lib
> > directory of
> > synapse) with the http.socket.timeout value set to the required
> > value.
> >
> > Thanks,
> > Ruwan.
> >
> >
> > On Thu, Mar 6, 2008 at 8:39 AM, xuhongbo <xu...@tongtech.com> wrote:
> >
> > > Hi, David:
> > >    You can change the http-socket timeout value by set
> > >    system property "http.socket.timeout", or define the property in
> > > nhttp.properties file(in classpath).  (this's http-core-nio
> > libarary's
> > > requirment)
> > >
> > >    End-point timeout will has no means if it is larger than
> > > http.socket.timeout.
> > >
> > >
> > >
> > > ----- Original Message -----
> > > From: "Ruwan Linton" <ru...@gmail.com>
> > > To: <us...@synapse.apache.org>
> > > Sent: Thursday, March 06, 2008 8:10 AM
> > > Subject: Re: web service timeout
> > >
> > >
> > > > OK David,
> > > >
> > > > That provides enough information to guess that there is something
> > wrong
> > > with
> > > > Synapse or your configuration, :)
> > > >
> > > > Can you please send me your configuration and the synapse log, so
> > that I
> > > can
> > > > have a look at what exactly went wrong?
> > > >
> > > > Thanks,
> > > > Ruwan
> > > >
> > > > On Thu, Mar 6, 2008 at 5:17 AM, David Champagne <
> > > david_e_champagne@yahoo.com>
> > > > wrote:
> > > >
> > > >> What's interesting is that if I bypass synapse and use just
> > axis-2 with
> > > >> the SimpleAxisServer, it works fine.  When I use the
> > SimpleAxisServer
> > > >> with axis-2 and synapse, the problem occurs.
> > > >>
> > > >> --- Ruwan Linton <ru...@gmail.com> wrote:
> > > >>
> > > >> > Hi David,
> > > >> >
> > > >> > I think the problem is the HTTP Socket timeout which is set to
> > 60 Sec
> > > >> > by
> > > >> > default, and there fore the HTTP socket always times out after
> > 60
> > > >> > seconds :(
> > > >> >
> > > >> > You will need to increase the socket timeout, but AFAIK, it
> > has to be
> > > >> > done
> > > >> > inside your client programmatically, even then I am not sure
> > whether
> > > >> > you can
> > > >> > increase that value or not.
> > > >> >
> > > >> > Thanks,
> > > >> > Ruwan
> > > >> >
> > > >> > On Wed, Mar 5, 2008 at 8:25 PM, David Champagne
> > > >> > <da...@yahoo.com>
> > > >> > wrote:
> > > >> >
> > > >> > > Hi,
> > > >> > >
> > > >> > > I am new to Apache Synapse, and I am having some
> > difficulting in
> > > >> > > telling synapse that I need to set the timeout for a
> > response from
> > > >> > one
> > > >> > > of my web services to be more than the default of 60
> > seconds.  One
> > > >> > of
> > > >> > > my web services can take a couple of minutes before it
> > returns a
> > > >> > > response.  I have tried adding an <endpoint> element to my
> > > >> > synapse.xml
> > > >> > > file, but this had no effect (see below).  How can I
> > configure
> > > >> > this?
> > > >> > >
> > > >> > > <definitions xmlns="http://ws.apache.org/ns/synapse">
> > > >> > >  <endpoint name="TestService1">
> > > >> > >  <address
> > uri="http://localhost:9000/axis2/services/TestService1">
> > > >> > >   <timeout>
> > > >> > >    <duration>100000</duration>
> > > >> > >    <action>fault</action>
> > > >> > >   </timeout>
> > > >> > >  </address>
> > > >> > >  </endpoint>
> > > >> > > </definitions>
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> >
> > > >>
> > > >>
> > >
> >
>
> ____________________________________________________________________________________
> > > >> > > Be a better friend, newshound, and
> > > >> > > know-it-all with Yahoo! Mobile.  Try it now.
> > > >> > > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> > > >> > >
> > > >> > >
> > > >> >
> > > >> >
> > > >> > --
> > > >> > Ruwan Linton
> > > >> > http://www.wso2.org - "Oxygenating the Web Services Platform"
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >>
> > > >>
> > >
> >
>
> ____________________________________________________________________________________
> > > >> Looking for last minute shopping deals?
> > > >> Find them fast with Yahoo! Search.
> > > >>
> >
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> > > >>
> > > >
> > > >
> > > >
> > > > --
> > > > Ruwan Linton
> > > > http://www.wso2.org - "Oxygenating the Web Services Platform"
> > > >
> > >
> >
> >
> >
> > --
> > Ruwan Linton
> > http://www.wso2.org - "Oxygenating the Web Services Platform"
> >
>
>
>
>
>  ____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>


-- 
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"

Re: web service timeout

Posted by David Champagne <da...@yahoo.com>.
You guys are the best.  It works perfect.  Thank you very much both
xuhongbo and Ruwan!!!


--- Ruwan Linton <ru...@gmail.com> wrote:

> David,
> 
> I found that xuhongbo is correct on this, you could do this by
> putting an
> nhttp.properties file in to the class path (that is to the lib
> directory of
> synapse) with the http.socket.timeout value set to the required
> value.
> 
> Thanks,
> Ruwan.
> 
> 
> On Thu, Mar 6, 2008 at 8:39 AM, xuhongbo <xu...@tongtech.com> wrote:
> 
> > Hi, David:
> >    You can change the http-socket timeout value by set
> >    system property "http.socket.timeout", or define the property in
> > nhttp.properties file(in classpath).  (this's http-core-nio
> libarary's
> > requirment)
> >
> >    End-point timeout will has no means if it is larger than
> > http.socket.timeout.
> >
> >
> >
> > ----- Original Message -----
> > From: "Ruwan Linton" <ru...@gmail.com>
> > To: <us...@synapse.apache.org>
> > Sent: Thursday, March 06, 2008 8:10 AM
> > Subject: Re: web service timeout
> >
> >
> > > OK David,
> > >
> > > That provides enough information to guess that there is something
> wrong
> > with
> > > Synapse or your configuration, :)
> > >
> > > Can you please send me your configuration and the synapse log, so
> that I
> > can
> > > have a look at what exactly went wrong?
> > >
> > > Thanks,
> > > Ruwan
> > >
> > > On Thu, Mar 6, 2008 at 5:17 AM, David Champagne <
> > david_e_champagne@yahoo.com>
> > > wrote:
> > >
> > >> What's interesting is that if I bypass synapse and use just
> axis-2 with
> > >> the SimpleAxisServer, it works fine.  When I use the
> SimpleAxisServer
> > >> with axis-2 and synapse, the problem occurs.
> > >>
> > >> --- Ruwan Linton <ru...@gmail.com> wrote:
> > >>
> > >> > Hi David,
> > >> >
> > >> > I think the problem is the HTTP Socket timeout which is set to
> 60 Sec
> > >> > by
> > >> > default, and there fore the HTTP socket always times out after
> 60
> > >> > seconds :(
> > >> >
> > >> > You will need to increase the socket timeout, but AFAIK, it
> has to be
> > >> > done
> > >> > inside your client programmatically, even then I am not sure
> whether
> > >> > you can
> > >> > increase that value or not.
> > >> >
> > >> > Thanks,
> > >> > Ruwan
> > >> >
> > >> > On Wed, Mar 5, 2008 at 8:25 PM, David Champagne
> > >> > <da...@yahoo.com>
> > >> > wrote:
> > >> >
> > >> > > Hi,
> > >> > >
> > >> > > I am new to Apache Synapse, and I am having some
> difficulting in
> > >> > > telling synapse that I need to set the timeout for a
> response from
> > >> > one
> > >> > > of my web services to be more than the default of 60
> seconds.  One
> > >> > of
> > >> > > my web services can take a couple of minutes before it
> returns a
> > >> > > response.  I have tried adding an <endpoint> element to my
> > >> > synapse.xml
> > >> > > file, but this had no effect (see below).  How can I
> configure
> > >> > this?
> > >> > >
> > >> > > <definitions xmlns="http://ws.apache.org/ns/synapse">
> > >> > >  <endpoint name="TestService1">
> > >> > >  <address
> uri="http://localhost:9000/axis2/services/TestService1">
> > >> > >   <timeout>
> > >> > >    <duration>100000</duration>
> > >> > >    <action>fault</action>
> > >> > >   </timeout>
> > >> > >  </address>
> > >> > >  </endpoint>
> > >> > > </definitions>
> > >> > >
> > >> > >
> > >> > >
> > >> > >
> > >> >
> > >>
> > >>
> >
>
____________________________________________________________________________________
> > >> > > Be a better friend, newshound, and
> > >> > > know-it-all with Yahoo! Mobile.  Try it now.
> > >> > > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> > >> > >
> > >> > >
> > >> >
> > >> >
> > >> > --
> > >> > Ruwan Linton
> > >> > http://www.wso2.org - "Oxygenating the Web Services Platform"
> > >> >
> > >>
> > >>
> > >>
> > >>
> > >>
> > 
>
____________________________________________________________________________________
> > >> Looking for last minute shopping deals?
> > >> Find them fast with Yahoo! Search.
> > >>
>
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> > >>
> > >
> > >
> > >
> > > --
> > > Ruwan Linton
> > > http://www.wso2.org - "Oxygenating the Web Services Platform"
> > >
> >
> 
> 
> 
> -- 
> Ruwan Linton
> http://www.wso2.org - "Oxygenating the Web Services Platform"
> 



      ____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


Re: web service timeout

Posted by Ruwan Linton <ru...@gmail.com>.
David,

I found that xuhongbo is correct on this, you could do this by putting an
nhttp.properties file in to the class path (that is to the lib directory of
synapse) with the http.socket.timeout value set to the required value.

Thanks,
Ruwan.


On Thu, Mar 6, 2008 at 8:39 AM, xuhongbo <xu...@tongtech.com> wrote:

> Hi, David:
>    You can change the http-socket timeout value by set
>    system property "http.socket.timeout", or define the property in
> nhttp.properties file(in classpath).  (this's http-core-nio libarary's
> requirment)
>
>    End-point timeout will has no means if it is larger than
> http.socket.timeout.
>
>
>
> ----- Original Message -----
> From: "Ruwan Linton" <ru...@gmail.com>
> To: <us...@synapse.apache.org>
> Sent: Thursday, March 06, 2008 8:10 AM
> Subject: Re: web service timeout
>
>
> > OK David,
> >
> > That provides enough information to guess that there is something wrong
> with
> > Synapse or your configuration, :)
> >
> > Can you please send me your configuration and the synapse log, so that I
> can
> > have a look at what exactly went wrong?
> >
> > Thanks,
> > Ruwan
> >
> > On Thu, Mar 6, 2008 at 5:17 AM, David Champagne <
> david_e_champagne@yahoo.com>
> > wrote:
> >
> >> What's interesting is that if I bypass synapse and use just axis-2 with
> >> the SimpleAxisServer, it works fine.  When I use the SimpleAxisServer
> >> with axis-2 and synapse, the problem occurs.
> >>
> >> --- Ruwan Linton <ru...@gmail.com> wrote:
> >>
> >> > Hi David,
> >> >
> >> > I think the problem is the HTTP Socket timeout which is set to 60 Sec
> >> > by
> >> > default, and there fore the HTTP socket always times out after 60
> >> > seconds :(
> >> >
> >> > You will need to increase the socket timeout, but AFAIK, it has to be
> >> > done
> >> > inside your client programmatically, even then I am not sure whether
> >> > you can
> >> > increase that value or not.
> >> >
> >> > Thanks,
> >> > Ruwan
> >> >
> >> > On Wed, Mar 5, 2008 at 8:25 PM, David Champagne
> >> > <da...@yahoo.com>
> >> > wrote:
> >> >
> >> > > Hi,
> >> > >
> >> > > I am new to Apache Synapse, and I am having some difficulting in
> >> > > telling synapse that I need to set the timeout for a response from
> >> > one
> >> > > of my web services to be more than the default of 60 seconds.  One
> >> > of
> >> > > my web services can take a couple of minutes before it returns a
> >> > > response.  I have tried adding an <endpoint> element to my
> >> > synapse.xml
> >> > > file, but this had no effect (see below).  How can I configure
> >> > this?
> >> > >
> >> > > <definitions xmlns="http://ws.apache.org/ns/synapse">
> >> > >  <endpoint name="TestService1">
> >> > >  <address uri="http://localhost:9000/axis2/services/TestService1">
> >> > >   <timeout>
> >> > >    <duration>100000</duration>
> >> > >    <action>fault</action>
> >> > >   </timeout>
> >> > >  </address>
> >> > >  </endpoint>
> >> > > </definitions>
> >> > >
> >> > >
> >> > >
> >> > >
> >> >
> >>
> >>
> ____________________________________________________________________________________
> >> > > Be a better friend, newshound, and
> >> > > know-it-all with Yahoo! Mobile.  Try it now.
> >> > > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >> > >
> >> > >
> >> >
> >> >
> >> > --
> >> > Ruwan Linton
> >> > http://www.wso2.org - "Oxygenating the Web Services Platform"
> >> >
> >>
> >>
> >>
> >>
> >>
>  ____________________________________________________________________________________
> >> Looking for last minute shopping deals?
> >> Find them fast with Yahoo! Search.
> >> http://tools.search.yahoo.com/newsearch/category.php?category=shopping
> >>
> >
> >
> >
> > --
> > Ruwan Linton
> > http://www.wso2.org - "Oxygenating the Web Services Platform"
> >
>



-- 
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"

Re: web service timeout

Posted by xuhongbo <xu...@tongtech.com>.
Hi, David:
    You can change the http-socket timeout value by set
    system property "http.socket.timeout", or define the property in nhttp.properties file(in classpath).  (this's http-core-nio libarary's requirment)

    End-point timeout will has no means if it is larger than http.socket.timeout.
   
    

----- Original Message ----- 
From: "Ruwan Linton" <ru...@gmail.com>
To: <us...@synapse.apache.org>
Sent: Thursday, March 06, 2008 8:10 AM
Subject: Re: web service timeout


> OK David,
> 
> That provides enough information to guess that there is something wrong with
> Synapse or your configuration, :)
> 
> Can you please send me your configuration and the synapse log, so that I can
> have a look at what exactly went wrong?
> 
> Thanks,
> Ruwan
> 
> On Thu, Mar 6, 2008 at 5:17 AM, David Champagne <da...@yahoo.com>
> wrote:
> 
>> What's interesting is that if I bypass synapse and use just axis-2 with
>> the SimpleAxisServer, it works fine.  When I use the SimpleAxisServer
>> with axis-2 and synapse, the problem occurs.
>>
>> --- Ruwan Linton <ru...@gmail.com> wrote:
>>
>> > Hi David,
>> >
>> > I think the problem is the HTTP Socket timeout which is set to 60 Sec
>> > by
>> > default, and there fore the HTTP socket always times out after 60
>> > seconds :(
>> >
>> > You will need to increase the socket timeout, but AFAIK, it has to be
>> > done
>> > inside your client programmatically, even then I am not sure whether
>> > you can
>> > increase that value or not.
>> >
>> > Thanks,
>> > Ruwan
>> >
>> > On Wed, Mar 5, 2008 at 8:25 PM, David Champagne
>> > <da...@yahoo.com>
>> > wrote:
>> >
>> > > Hi,
>> > >
>> > > I am new to Apache Synapse, and I am having some difficulting in
>> > > telling synapse that I need to set the timeout for a response from
>> > one
>> > > of my web services to be more than the default of 60 seconds.  One
>> > of
>> > > my web services can take a couple of minutes before it returns a
>> > > response.  I have tried adding an <endpoint> element to my
>> > synapse.xml
>> > > file, but this had no effect (see below).  How can I configure
>> > this?
>> > >
>> > > <definitions xmlns="http://ws.apache.org/ns/synapse">
>> > >  <endpoint name="TestService1">
>> > >  <address uri="http://localhost:9000/axis2/services/TestService1">
>> > >   <timeout>
>> > >    <duration>100000</duration>
>> > >    <action>fault</action>
>> > >   </timeout>
>> > >  </address>
>> > >  </endpoint>
>> > > </definitions>
>> > >
>> > >
>> > >
>> > >
>> >
>>
>> ____________________________________________________________________________________
>> > > Be a better friend, newshound, and
>> > > know-it-all with Yahoo! Mobile.  Try it now.
>> > > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>> > >
>> > >
>> >
>> >
>> > --
>> > Ruwan Linton
>> > http://www.wso2.org - "Oxygenating the Web Services Platform"
>> >
>>
>>
>>
>>
>>  ____________________________________________________________________________________
>> Looking for last minute shopping deals?
>> Find them fast with Yahoo! Search.
>> http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>>
> 
> 
> 
> -- 
> Ruwan Linton
> http://www.wso2.org - "Oxygenating the Web Services Platform"
>

Re: web service timeout

Posted by Ruwan Linton <ru...@gmail.com>.
OK David,

That provides enough information to guess that there is something wrong with
Synapse or your configuration, :)

Can you please send me your configuration and the synapse log, so that I can
have a look at what exactly went wrong?

Thanks,
Ruwan

On Thu, Mar 6, 2008 at 5:17 AM, David Champagne <da...@yahoo.com>
wrote:

> What's interesting is that if I bypass synapse and use just axis-2 with
> the SimpleAxisServer, it works fine.  When I use the SimpleAxisServer
> with axis-2 and synapse, the problem occurs.
>
> --- Ruwan Linton <ru...@gmail.com> wrote:
>
> > Hi David,
> >
> > I think the problem is the HTTP Socket timeout which is set to 60 Sec
> > by
> > default, and there fore the HTTP socket always times out after 60
> > seconds :(
> >
> > You will need to increase the socket timeout, but AFAIK, it has to be
> > done
> > inside your client programmatically, even then I am not sure whether
> > you can
> > increase that value or not.
> >
> > Thanks,
> > Ruwan
> >
> > On Wed, Mar 5, 2008 at 8:25 PM, David Champagne
> > <da...@yahoo.com>
> > wrote:
> >
> > > Hi,
> > >
> > > I am new to Apache Synapse, and I am having some difficulting in
> > > telling synapse that I need to set the timeout for a response from
> > one
> > > of my web services to be more than the default of 60 seconds.  One
> > of
> > > my web services can take a couple of minutes before it returns a
> > > response.  I have tried adding an <endpoint> element to my
> > synapse.xml
> > > file, but this had no effect (see below).  How can I configure
> > this?
> > >
> > > <definitions xmlns="http://ws.apache.org/ns/synapse">
> > >  <endpoint name="TestService1">
> > >  <address uri="http://localhost:9000/axis2/services/TestService1">
> > >   <timeout>
> > >    <duration>100000</duration>
> > >    <action>fault</action>
> > >   </timeout>
> > >  </address>
> > >  </endpoint>
> > > </definitions>
> > >
> > >
> > >
> > >
> >
>
> ____________________________________________________________________________________
> > > Be a better friend, newshound, and
> > > know-it-all with Yahoo! Mobile.  Try it now.
> > > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> > >
> > >
> >
> >
> > --
> > Ruwan Linton
> > http://www.wso2.org - "Oxygenating the Web Services Platform"
> >
>
>
>
>
>  ____________________________________________________________________________________
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>



-- 
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"

Re: web service timeout

Posted by David Champagne <da...@yahoo.com>.
What's interesting is that if I bypass synapse and use just axis-2 with
the SimpleAxisServer, it works fine.  When I use the SimpleAxisServer
with axis-2 and synapse, the problem occurs.

--- Ruwan Linton <ru...@gmail.com> wrote:

> Hi David,
> 
> I think the problem is the HTTP Socket timeout which is set to 60 Sec
> by
> default, and there fore the HTTP socket always times out after 60
> seconds :(
> 
> You will need to increase the socket timeout, but AFAIK, it has to be
> done
> inside your client programmatically, even then I am not sure whether
> you can
> increase that value or not.
> 
> Thanks,
> Ruwan
> 
> On Wed, Mar 5, 2008 at 8:25 PM, David Champagne
> <da...@yahoo.com>
> wrote:
> 
> > Hi,
> >
> > I am new to Apache Synapse, and I am having some difficulting in
> > telling synapse that I need to set the timeout for a response from
> one
> > of my web services to be more than the default of 60 seconds.  One
> of
> > my web services can take a couple of minutes before it returns a
> > response.  I have tried adding an <endpoint> element to my
> synapse.xml
> > file, but this had no effect (see below).  How can I configure
> this?
> >
> > <definitions xmlns="http://ws.apache.org/ns/synapse">
> >  <endpoint name="TestService1">
> >  <address uri="http://localhost:9000/axis2/services/TestService1">
> >   <timeout>
> >    <duration>100000</duration>
> >    <action>fault</action>
> >   </timeout>
> >  </address>
> >  </endpoint>
> > </definitions>
> >
> >
> >
> > 
>
____________________________________________________________________________________
> > Be a better friend, newshound, and
> > know-it-all with Yahoo! Mobile.  Try it now.
> > http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
> >
> >
> 
> 
> -- 
> Ruwan Linton
> http://www.wso2.org - "Oxygenating the Web Services Platform"
> 



      ____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Re: web service timeout

Posted by Ruwan Linton <ru...@gmail.com>.
Hi David,

I think the problem is the HTTP Socket timeout which is set to 60 Sec by
default, and there fore the HTTP socket always times out after 60 seconds :(

You will need to increase the socket timeout, but AFAIK, it has to be done
inside your client programmatically, even then I am not sure whether you can
increase that value or not.

Thanks,
Ruwan

On Wed, Mar 5, 2008 at 8:25 PM, David Champagne <da...@yahoo.com>
wrote:

> Hi,
>
> I am new to Apache Synapse, and I am having some difficulting in
> telling synapse that I need to set the timeout for a response from one
> of my web services to be more than the default of 60 seconds.  One of
> my web services can take a couple of minutes before it returns a
> response.  I have tried adding an <endpoint> element to my synapse.xml
> file, but this had no effect (see below).  How can I configure this?
>
> <definitions xmlns="http://ws.apache.org/ns/synapse">
>  <endpoint name="TestService1">
>  <address uri="http://localhost:9000/axis2/services/TestService1">
>   <timeout>
>    <duration>100000</duration>
>    <action>fault</action>
>   </timeout>
>  </address>
>  </endpoint>
> </definitions>
>
>
>
>  ____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile.  Try it now.
> http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>


-- 
Ruwan Linton
http://www.wso2.org - "Oxygenating the Web Services Platform"