We talked to Mohammad in our office, but here is a summary. I've CCed
taverna-hackers, as it involves how to design web services.


We looked into this, and it turns out you can set a system property
called taverna.wsdl.timeout to the number of minutes you would prefer
for the WSDL operation timeout. The default is 5 minutes, which we
have found to be sufficient for most synchronous web services.

One can modify this system property by editing taverna-debug.bat /
taverna.sh and add
  -Dtaverna.wsdl.timeout=60

In Mohammad's case it is not a problem to increase this timeout to say
60 minutes, as his services are running on localhost, but for any web
services accessed over the network such high timeout settings would
come with a high risk of loosing the connection.


If designing such long-running web services to be exposed on the
Internet it is advisable to instead implement them as asynchronous
services.

See http://www.mygrid.org.uk/dev/wiki/display/scrap/Looping+in+Taverna+2.1
for example of how to invoke asynchronous services from Taverna.


There's no agreed standard for asynchronous WSDL services [1], but in
a short pseudo code version, inspired by EBIs InterProScan service:

  UUID jobId = service.submitJob(inputData);
  while (service.checkStatus(jobId).equals("running") {
        Thread.sleep(500);
  }
  resultData = service.getResults(jobId);

It is then also possible in Taverna 2.2 and later to configure retries
on each of these methods, which would mean that if the network
connection drops, you would not necessarily have to wait for a whole
new run on the server, it would just run checkStatus() or getResults()
again for the same job ID.

I also suggest using UUIDs for jobIDs. Remember to have some kind of
garbage collection service side in case the clients never come around
to collect their results! :)


[1] Not totally true, as WSRF and WS ResourceLifetime can achieve
this, but at the expense of no longer being standard SOAP services.

On Sun, Jul 4, 2010 at 10:52, mohammad khodadadi
<[email protected]> wrote:
> Hi
>
> It's a local wsdl.
>
> java.net.SocketTimeoutException: Read timed out
> org.apache.axis.AxisFault.makeFault(AxisFault.java:101)
> org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:154)
> org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
> org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
> org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
> org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
> org.apache.axis.client.Call.invokeEngine(Call.java:2784)
> org.apache.axis.client.Call.invoke(Call.java:2767)
> org.apache.axis.client.Call.invoke(Call.java:1910)
> net.sf.taverna.wsdl.soap.WSDLSOAPInvoker.invokeCall(WSDLSOAPInvoker.java:198)
> net.sf.taverna.wsdl.soap.WSDLSOAPInvoker.invoke(WSDLSOAPInvoker.java:139)
> net.sf.taverna.t2.activities.wsdl.T2WSDLSOAPInvoker.invoke(T2WSDLSOAPInvoker.java:265)
> net.sf.taverna.t2.activities.wsdl.WSDLActivity$1.run(WSDLActivity.java:267)
> java.lang.Thread.run(Thread.java:636)
>
>
> MkH
>
> Mohammad Khodadadi wrote:
>> Hi
>
> Hello,
>
>> Is there any Timeout period for taverna for waiting for service result ?
>> (While my service is doing the calculation and filling my log file i
>> see timeout error on taverna )
>
> What type of service is it?
>
>> MkH
>
> Alan
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> taverna-users mailing list
> [email protected]
> [email protected]
> Web site: http://www.taverna.org.uk
> Mailing lists: http://www.taverna.org.uk/about/contact-us/
>



-- 
Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
taverna-hackers mailing list
[email protected]
Web site: http://www.taverna.org.uk
Mailing lists: http://www.taverna.org.uk/about/contact-us/
Developers Guide: http://www.taverna.org.uk/developers/

Reply via email to