Ask Your Question

webservice timeout

asked 2019-02-21 08:36:49 +0200

zhivko gravatar image

hi everybody!

I enjoy using libreoffice package, but I need integration through libreoffice macro with external webservice that is very slow. It seems that call times out (180s is the time webservice processes request). Is there a way to set timeout on client?

There is no info in help/documentation how to set webservice/rest call timeout when this call happens in LO macro.

Macro of call is:

url = "http://localhost:8080/mytestwebservic..." svc = createUnoService("") ret = svc.callFunction("WEBSERVICE", Array(url))

Anybody knows where "ws timeout" be found?

There are usually connect timeout and response timeout. It would be great if both of those could be defined somewhere in settings of LibreOffice.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2019-02-22 17:00:51 +0200

erAck gravatar image

I guess you can't define a different timeout, at least there is nothing specific to the WEBSERVICE() function.

edit flag offensive delete link more


It is clear for me that WEBSERVICE doesnt't take extra argument timeout. The question is where is connection and webservice timeout defined? Where in source code of LIBREOFFICE (if I decide to custom build LO) can I change this?

zhivko gravatar imagezhivko ( 2019-02-25 15:25:33 +0200 )edit

I wasn't talking of a WEBSERVICE() argument; its implementation has no such thing. It uses internal procedures that again use connection services where probably some default timeout is defined that affects all internet connections. If you want to dig into it, start at sc/source/core/tool/interpr7.cxx ScInterpreter::ScWebservice()

erAck gravatar imageerAck ( 2019-02-25 16:03:10 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-02-21 08:36:49 +0200

Seen: 53 times

Last updated: Feb 22