Hi all,
I'm new in Documentum.
I installed Documentum Developer edition 6.6 on Windows XP.
I am trying to use DFS Object Service by JAVA API with this samples
http://www.bluefishgroup.com/library/2007/introduction-to-dfs-web-services-client-programming/
but I get following exception.
I am able to access the WSDL in internet explorer,
http://pc66650:9080/services/core/ObjectService it works fine,
Any help?
code:
....................................................
| // Set important variables |
|
| String repositoryName = "docu2"; |
|
| String userName = "documentum"; |
|
| String userPassword = "documentum1"; |
|
|
| String hostPoint = "http://pc66650:9080/services"; |
|
|
|
try
{
| | // Get a ContextFactory so that we can |
| | // create a ServiceContext |
| |
| System.out.println("Creating ContextFactory"); |
| |
| ContextFactory contextFactory = ContextFactory.getInstance(); |
| |
|
|
| |
| // Use the ContextFactory to create |
| |
| // a ServiceContext for a service |
| |
| System.out.println("Creating ServiceContext"); |
| |
| IServiceContext serviceContext = contextFactory.newContext(); |
| |
|
|
| |
| // Create a RepositoryIdentity to store the |
| |
| // repository credentials on the ServiceContext |
| |
| System.out.println("Creating RepositoryIdentity"); |
| |
| RepositoryIdentity repoId = new RepositoryIdentity(); |
| |
|
|
| |
| // Populate the repository credentials |
| |
| System.out.println("Populating RepositoryIdentity"); |
| |
| repoId.setRepositoryName(repositoryName); |
| |
| repoId.setUserName(userName); |
| |
| repoId.setPassword(userPassword); |
| |
|
|
| |
| // Add the populated RepositoryIdentity to the ServiceContext |
| |
| System.out.println("Adding RepositoryIdentity to ServiceContext"); |
| |
| serviceContext.addIdentity(repoId); | | |
|
|
|
|
|
|
| IObjectService objectService = ServiceFactory.getInstance().getRemoteService(IObjectService.class, |
|
|
|
| serviceContext,"core",hostPoint); | |
|
|
|
|
|
|
|
| |
| System.out.println("***********************************"); |
........................................
Exception
com.emc.documentum.fs.rt.ServiceInvocationException: Service "com.emc.documentum.fs.services.core.ObjectService" has invalid URL: "http://PC66650:9080/services/core/".
at com.emc.documentum.fs.rt.context.impl.DfsSoapService.newWebServiceClient(DfsSoapService.java:192)
at com.emc.documentum.fs.rt.context.impl.DfsSoapService.init(DfsSoapService.java:62)
at com.emc.documentum.fs.rt.context.impl.DfsSoapService.getBindingProvider(DfsSoapService.java:55)
at com.emc.documentum.fs.rt.context.impl.HttpSessionInvocationHandler.invoke(HttpSessionInvocationHandler.java:54)
at com.emc.documentum.fs.rt.context.impl.RemoteServiceInterfaceInvocationHandler.invoke(RemoteServiceInterfaceInvocationHandler.java:30)
at com.emc.documentum.fs.rt.context.impl.ReturnedContentTransformationHandler.invoke(ReturnedContentTransformationHandler.java:45)
at com.emc.documentum.fs.rt.context.impl.OperationOptionsHandler.invoke(OperationOptionsHandler.java:71)
at com.emc.documentum.fs.rt.context.impl.ContextThreadLocalInvocationHandler.invoke(ContextThreadLocalInvocationHandler.java:51)
com.emc.documentum.fs.rt.ServiceInvocationException: Service "com.emc.documentum.fs.services.core.ObjectService" has invalid URL: "http://PC66650:9080/services/core/".
--------------------------------