webservice timeout

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/mytestwebservice?param1=23424
svc = createUnoService(“com.sun.star.sheet.FunctionAccess”)
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.

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

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?

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()