Hi WEBSERVICE and FILTERXML functions get some web content from URIs. The help examples use URLs : https://help.libreoffice.org/4.4/Calc/WEBSERVICE/fr It seems to me that it would be better to use URIs in the examples: api.openweathermap.org/data/2.5/forecast?q=Copenhagen,dk&mode=xml&units=metric instead of: http://api.openweathermap.org/data/2.5/forecast?q=Copenhagen,dk&mode=xml&units=metric Thank you for your much appreciated work. Regards Pierre-Yves
I have given mistakenly the francophone link to the source page, but of course it is this: https://help.libreoffice.org/4.4/Calc/WEBSERVICE Pierre-Yves
"The URI syntax consists of a URI scheme name (such as "http", "ftp", "mailto", "crid" or "file") followed by a colon character, and then by a scheme-specific part." - https://en.wikipedia.org/wiki/Uniform_resource_identifier why removing the protocol type? theoretical (very theoretical) a web service could be implemented using ftp. (not so theoretical: setting up a https web service without a redirection from http)
Hi Dennis (In reply to Dennis Roczek from comment #2) thank you for the link... I guess I should not have posted this request if I did not know that, do you think? > why removing the protocol type? 1. Because it is not necessary... 2. Because help says the function use URI (and it is right) and not only URL, although it is obvious that it works with the protocol... 3. Because it gives an incomplete picture 4. Because I do not see one good reason to have only examples with protocol... It seems to me necessary to give *at least* one example without specifying the protocol. Regards Pierre-Yves
Pierre-Yves, I looked at replacing the URL in our help, but nowadays OpenWeatherMap is no longer a good example for it, because they have restricted open access to their API. http://openweathermap.org/faq#error401 Do you know of any other service we can use to showcase the functionality of this Calc function in Help? Otherwise I’ll just remove the paragraph, because it’s no longer useful.
Hi (In reply to Adolfo Jayme from comment #4) > Pierre-Yves, I looked at replacing the URL in our help, Thank you :) > OpenWeatherMap is no longer a good example for it, because they have > restricted open access to their API. Ouch :( > Do you know of any other service we can use No... and very sorry I do not really have the time to invest. Markus Mohrhard might have ideas? May be we can use something like: =WEBSERVICE("wiki.documentfoundation.org/api.php?hidebots=1&days=7&limit=50&action=feedrecentchanges&feedformat=rss") and: =FILTERXML(A1;"//lastBuildDate") ? > Otherwise I’ll just remove the paragraph, > because it’s no longer useful. This may be an option... Best regards Pierre-Yves
Olivier Hallot committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/help/commit/?id=5be1429f1ad6ac472836097516ab3cd0681ecf38 tdf#92430 Better example for =WEBSERVICE()