I can't understand whats wrong in my remote-client code. Why url is invalid? If I'am checking in my browser: http://192.168.12.12:9080/services/MyModule/MyService?wsdl its ok.
.....
public void runRegService(String docbaseName, String userName,
String objectId) {
String moduleName = "MyModule";
ContextFactory contextFactory = ContextFactory.getInstance();
IServiceContext context = contextFactory.newContext();
RepositoryIdentity repoId = new RepositoryIdentity();
repoId.setRepositoryName(docbaseName);
repoId.setUserName("dmadmin");
repoId.setPassword("qwerty");
repoId.setDomain("");
context.addIdentity(repoId);
try {
IServiceContext registeredContext = contextFactory.register(
context, moduleName, contextRoot);
ServiceFactory serviceFactory = ServiceFactory.getInstance();
IMyService service = serviceFactory.getRemoteService(
IMyService.class, registeredContext,
moduleName, contextRoot);
service.runRegistrationService(docbaseName, userName, objectId); // exception!
} catch (ServiceException e) {
e.printStackTrace();
}
}
Exception: com.emc.documentum.fs.rt.ServiceInvocationException: Service "company.dm.service.ws.MyService" has invalid url: "http://192.168.12.12:9080/services/MyModule/".
at com.emc.documentum.fs.rt.context.impl.DfsSoapService.newWebServiceClient(DfsSoapService.java:176)
at com.emc.documentum.fs.rt.context.impl.DfsSoapService.getInstance(DfsSoapService.java:46)
at com.emc.documentum.fs.rt.context.impl.DfsCachedService.getInstance(DfsCachedService.java:30)
at com.emc.documentum.fs.rt.context.impl.DfsCachedUnlessChangedService.getInstance(DfsCachedUnlessChangedService.java:26)
at com.emc.documentum.fs.rt.context.impl.ClientReflectionServiceInvoker.invoke(ClientReflectionServiceInvoker.java:57)
at com.emc.documentum.fs.rt.context.impl.SoapClientInvocationHandler.invoke(SoapClientInvocationHandler.java:66)
at com.emc.documentum.fs.rt.context.impl.UcfClientInvocationHandler.invoke(UcfClientInvocationHandler.java:47)
at com.emc.documentum.fs.rt.context.impl.HttpSessionInvocationHandler.invoke(HttpSessionInvocationHandler.java:65)
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:59)
at com.emc.documentum.fs.rt.context.impl.ContextThreadLocalInvocationHandler.invoke(ContextThreadLocalInvocationHandler.java:51)
at com.emc.documentum.fs.rt.context.impl.ServiceContextInvocationHandler.invoke(ServiceContextInvocationHandler.java:30)
at $Proxy45.toString(Unknown Source)