<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: Endless loop when calling a Webservice</title><link>https://answers.axonivy.com/questions/3435/endless-loop-when-calling-a-webservice</link><description>&lt;p&gt;When calling an external Webservice we get a log of type:
 "The following requests seems to loop endless or are blocked:"&lt;/p&gt;
&lt;p&gt;According to an answer in another post:&lt;/p&gt;
&lt;p&gt;The endless loop logs occur when:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;a normal user request is running for longer than 5 minutes&lt;/li&gt;
&lt;li&gt;a system user task is running longer than 1 hour&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;How could be provoke such an error?
And how could we prevent such an error when it occurs on a WebService call? Maybe by defining a Timeout on the Webservice call?
Does a default timeout for the WS Call exist?&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/3435/endless-loop-when-calling-a-webservice" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 21 Sep 2018 03:04:27 -0400</lastBuildDate><item><title>Comment by Fotini Kalantidou on Reto Weiss's answer</title><link>https://answers.axonivy.com/questions/3435/endless-loop-when-calling-a-webservice#3437</link><description>&lt;p&gt;Thank you a lot Reto, yes this helps!&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Fotini Kalantidou</dc:creator><pubDate>Fri, 21 Sep 2018 03:04:27 -0400</pubDate><guid>https://answers.axonivy.com/questions/3435/endless-loop-when-calling-a-webservice#3437</guid></item><item><title>Answer by Reto Weiss</title><link>https://answers.axonivy.com/questions/3435/endless-loop-when-calling-a-webservice/3436</link><description>&lt;p&gt;Hi Fotini&lt;/p&gt;
&lt;p&gt;Axon.ivy logs this error when a process is running longer than 5 minutes (if the process is started by a user over a http request). The error should give a hint that something might be wrong. Normally, a process should not run that long because the user wants a feedback in seconds and not minutes. The cause of the long running process can be manifold:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;An endless loop in your process&lt;/li&gt;
&lt;li&gt;A call to a third party system that takes to much time (e.g. Webservice call)&lt;/li&gt;
&lt;li&gt;etc.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;To prevent that a web service takes to long you can specify timeouts on the web service call. If you use CXF (&amp;gt;= 7.1) you can specify the following timeout properties:
 - javax.xml.ws.client.receiveTimeout (default is 1 minute)
 - javax.xml.ws.client.connectionTimeout (default is 30 seconds)&lt;/p&gt;
&lt;p&gt;If you use Axis2 you can specify the following timeout property:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;timeout.timeInSeconds (there is no default value for this property. This means there is no timeout by default here)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you use Axon.ivy &amp;lt; 7.1 you can specify the timeout on the inscription mask directly. See Tab &lt;em&gt;WS&lt;/em&gt; group &lt;em&gt;Errors&lt;/em&gt; and field &lt;em&gt;Timeout in seconds&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Hope this helps&lt;/p&gt;
&lt;p&gt;Regards
Reto Weiss, Axon.ivy Support&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reto Weiss</dc:creator><pubDate>Fri, 21 Sep 2018 02:56:30 -0400</pubDate><guid>https://answers.axonivy.com/questions/3435/endless-loop-when-calling-a-webservice/3436</guid></item></channel></rss>