cancel
Showing results for 
Search instead for 
Did you mean: 

web services alfresco problem

cibermon
Champ in-the-making
Champ in-the-making
Hi, I'm using web services of alfresco for vb .net

I'm trying to make a query to get the documents from a especific folder, I tried to querychildren method, passing the reference of the folder but I get the reference for the query method.

this is code to use the query method that does not work:

spaceStore = New AlfrescoRepositoryWebService.Store
spaceStore.scheme = "workspace"
spaceStore.address = "SpacesStore"

query = New AlfrescoRepositoryWebService.Query
query.language = "xpath"
query.statement = "/{http://www.alfresco.org/model/application/1.0}company_home/{http://www.alfresco.org/model/content/1...."

resultado = repositoryWebService.query(spaceStore, query, True)



this is code to use the queryChildren method that does work perfectly

referencia = New AlfrescoRepositoryWebService.Reference

referencia.store = spaceStore
referencia.path = "/app:company_home/cm:Notin"

resultado = repositoryWebService.queryChildren(referencia)


Anyone can help me?

Thanks.
1 REPLY 1

cibermon
Champ in-the-making
Champ in-the-making
I  redefined the query:

spaceStore = New AlfrescoRepositoryWebService.Store
spaceStore.scheme = "workspace"
spaceStore.address = "SpacesStore"

  query = New AlfrescoRepositoryWebService.Query
  query.language = "lucene"
   
  query.statement = "Path:""/Company Home/Notin"""
           
  result = repositoryWebService.query(spaceStore, query, True)

but result contains 0 items, and in the follow ussue result contains 1 item

referencia = New AlfrescoRepositoryWebService.Reference

referencia.store = spaceStore
referencia.path = "/app:company_home/cm:Notin"

resultado = repositoryWebService.queryChildren(referencia)


Anyone can help me?