06-09-2011 04:36 AM
Ticket can be specified in password, if any of the following are true:
a) username is not specified (i.e. null, or length of zero)
b) username is equal to "ROLE_TICKET" (case insensitive)
The CMIS REST API has also been updated to support the above, so it's consistent with Web Services.
SessionFactory factory= SessionFactoryImpl.newInstance();, but it returns me this :
Map<String, String> parameter = new HashMap<String, String>();
parameter.put(SessionParameter.USER,"");
parameter.put(SessionParameter.PASSWORD,theTicket);
parameter.put(SessionParameter.BINDING_TYPE, BindingType.ATOMPUB.value());
parameter.put(SessionParameter.ATOMPUB_URL,"URLToService/cmis");
parameter.put(SessionParameter.WEBSERVICES_NAVIGATION_SERVICE, "URLToService/cmis/services/NavigationService?wsdl");
parameter.put(SessionParameter.WEBSERVICES_OBJECT_SERVICE, "URLToService/cmis/services/ObjectService?wsdl");
org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Parsing exception!
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.parse(AbstractAtomPubService.java:465)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getRepositoriesInternal(AbstractAtomPubService.java:653)
at org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:58)
at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:85)
at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:69)
06-09-2011 05:08 AM
06-09-2011 05:58 AM
06-10-2011 12:35 PM
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.