OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

UCB and Webdav

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
lesguilw
Power User
Power User


Joined: 09 Nov 2005
Posts: 57
Location: Frenchy in Sevilla, Spain

PostPosted: Tue Apr 24, 2007 3:18 am    Post subject: UCB and Webdav Reply with quote

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
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group