03-25-2010 06:04 AM
/app:company_home/cm:portal/cm:Game/cm:Content/cm:The_x0020_Example/*/cm:050109.html
or
/app:company_home/cm:portal/cm:Game/cm:Content/cm:The_x0020_Example/cm:2009/cm:050109.html
…
WebServiceFactory.setEndpointAddress(Alfresco.ENDPOINT);
AuthenticationUtils.startSession(AlfrescoConstants.USERNAME, AlfrescoConstants.PASSWORD);
Reference ref = new Reference(AlfrescoConstants.STORE, null, "/app:company_home/cm:portal/cm:Game/cm:Content/cm:The_x0020_Example/*/cm:050109.html");
ContentServiceSoapBindingStub contentService = WebServiceFactory.getContentService();
Content[] readResult = contentService.read(
new Predicate(new Reference[]{ref}, AlfrescoConstants.STORE, null),
Constants.PROP_CONTENT);
03-26-2010 08:40 AM
cm:spaceName
The spaceName value must be encoded using the encode method of the ISO9075 helper class:org.alfresco.webservice.util.ISO9075
Try to use it in this way:
WebServiceFactory.setEndpointAddress(Alfresco.ENDPOINT);
AuthenticationUtils.startSession(AlfrescoConstants.USERNAME, AlfrescoConstants.PASSWORD);
Reference ref = new Reference(AlfrescoConstants.STORE, null, "/app:company_home/cm:"+ISO9075.encode(portal)+"/cm:"+ISO9075.encode(Game)+"/cm:"+ISO9075.encode(Content)+"/cm:"+ISO9075.encode(The_x0020_Example)+"/*/cm:050109.html");
ContentServiceSoapBindingStub contentService = WebServiceFactory.getContentService();
Content[] readResult = contentService.read(
new Predicate(new Reference[]{ref}, AlfrescoConstants.STORE, null),
Constants.PROP_CONTENT);
Hope this helps.
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.