lesguilw Power User

Joined: 09 Nov 2005 Posts: 57 Location: Frenchy in Sevilla, Spain
|
Posted: Tue Apr 24, 2007 3:18 am Post subject: UCB and Webdav |
|
|
Hi,
I'm having problems storing files on a webdav server using the UCB.
I tried the storeAsUrl function first but got IOException (maybe because the server needs authentification) so I'm trying the hard way with the UCB.
I try to retrieve a webdav folder object that would support the service com.sun.star.ucb.WebDAVFolderContent, I try to do it with the code:
| Code: |
oUCB = CreateUnoService("com.sun.star.ucb.UniversalContentBroker")
oWebdavContentProvider = createUnoService("com.sun.star.ucb.WebDAVContentProvider")
oFolderId = oUCB.createContentIdentifier(sUrl)
oFolderContent = oWebdavContentProvider.queryContent(oFolderId)
XRay oFolderContent |
I don't obtain such an object, but something (a com.sun.star.comp.ucb.WebDAVContent) that only supports the com.sun.star.ucb.WebDAVContent service that doesn't exist in the API...
The com.sun.star.ucb.WebDAVContentProvider service is supposed to give access to objects that support whether WebDAVDocumentContent or WebDAVFolderContent. Anyone know how to achieve that?
Thanks,
William |
|