06-12-2014 05:03 PM
// Web Services binding - test for performance
String webservicesUrl = "http://******/alfresco/cmis";
final String BINDING_TYPE = BindingType.WEBSERVICES.value();
parameter.put(SessionParameter.BINDING_TYPE, BINDING_TYPE);
parameter.put(SessionParameter.WEBSERVICES_ACL_SERVICE, webservicesUrl + "/ACLService");
parameter.put(SessionParameter.WEBSERVICES_DISCOVERY_SERVICE, webservicesUrl + "/DiscoveryService");
parameter.put(SessionParameter.WEBSERVICES_MULTIFILING_SERVICE, webservicesUrl + "/MultiFilingService");
parameter.put(SessionParameter.WEBSERVICES_NAVIGATION_SERVICE, webservicesUrl + "/NavigationService");
parameter.put(SessionParameter.WEBSERVICES_OBJECT_SERVICE, webservicesUrl + "/ObjectService");
parameter.put(SessionParameter.WEBSERVICES_POLICY_SERVICE, webservicesUrl + "/PolicyService");
parameter.put(SessionParameter.WEBSERVICES_RELATIONSHIP_SERVICE, webservicesUrl + "/RelationshipService");
parameter.put(SessionParameter.WEBSERVICES_REPOSITORY_SERVICE, webservicesUrl + "/RepositoryService");
parameter.put(SessionParameter.WEBSERVICES_VERSIONING_SERVICE, webservicesUrl + "/VersioningService");
SessionFactory factory = SessionFactoryImpl.newInstance();
List<Repository> repositories = factory.getRepositories(parameter);
m_session = repositories.get(0).createSession();
06-16-2014 09:38 PM
http://localhost:8080/alfresco/cmisws/cmis/RepositoryService?wsdl
,you should appedn the "?wsdl" to it.06-18-2014 04:40 PM
06-19-2014 06:40 AM
06-20-2014 02:02 PM
Exception in thread "main" java.lang.AbstractMethodError: javax.xml.parsers.DocumentBuilderFactory.setFeature(Ljava/lang/String;Z)V
at org.apache.chemistry.opencmis.commons.impl.XMLUtils.newDocumentBuilder(XMLUtils.java:306)
at org.apache.chemistry.opencmis.commons.impl.XMLUtils.parseDomDocument(XMLUtils.java:332)
at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.getEndpointUrlFromWsdl(AbstractPortProvider.java:574)
at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.initServiceObject(AbstractPortProvider.java:500)
at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.getPortObject(AbstractPortProvider.java:454)
at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.getRepositoryServicePort(AbstractPortProvider.java:280)
at org.apache.chemistry.opencmis.client.bindings.spi.webservices.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:69)
at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:85)
at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:109)
at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:96)
at com.harbinger.mek.vm.repository.alfresco.AlfrescoRepositoryHelperImpl.repositoryLoginWS(AlfrescoRepositoryHelperImpl.java:226)
at com.harbinger.mek.vm.repository.alfresco.ECMRepositoryTestHarness.main(ECMRepositoryTestHarness.java:45)
Disconnected from the target VM, address: '127.0.0.1:62695', transport: 'socket'
06-20-2014 09:59 PM
06-23-2014 12:36 PM
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/xml/ws/developer/WSBindingProvider
at org.apache.chemistry.opencmis.client.bindings.spi.webservices.SunRIPortProvider.createPortObject(SunRIPortProvider.java:84)
at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.getPortObject(AbstractPortProvider.java:458)
at org.apache.chemistry.opencmis.client.bindings.spi.webservices.AbstractPortProvider.getRepositoryServicePort(AbstractPortProvider.java:280)
at org.apache.chemistry.opencmis.client.bindings.spi.webservices.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:69)
at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:85)
at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:109)
at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:96)
at com.harbinger.mek.vm.repository.alfresco.AlfrescoRepositoryHelperImpl.repositoryLoginWS(AlfrescoRepositoryHelperImpl.java:226)
at com.harbinger.mek.vm.repository.alfresco.ECMRepositoryTestHarness.main(ECMRepositoryTestHarness.java:45)
Caused by: java.lang.ClassNotFoundException: com.sun.xml.ws.developer.WSBindingProvider
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
… 9 more
06-23-2014 09:33 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.