troubleshooting Question

Cannot call DFS webservice from Java client

Avatar of ank5
ank5Flag for India asked on
JavaContent ManagementWeb Services
5 Comments1 Solution4586 ViewsLast Modified:
I have created a Java client which calls a custom DFS service.

public class ClientGetResume {
    private static String ehrsModuleName = "ehrs";
    private static String host = "http://localhost:8888/services";
    public static void main(String[] args) {
        ContextFactory contextFactory = ContextFactory.getInstance();
        IServiceContext serviceContext = contextFactory.newContext();
        RepositoryIdentity repoId = new RepositoryIdentity();
        ServiceFactory serviceFactory = ServiceFactory.getInstance();
        IEHRS ehrsSvc = null;
        try {
            ehrsSvc = serviceFactory.getRemoteService(IEHRS.class, 
                             serviceContext, ehrsModuleName, host);
            String empName = ehrsSvc.getEmployeeName("1"); 
        }catch(ServiceInvocationException sie) {
        }catch(ServiceException se) {
Then I run this client, I get the following error
com.emc.documentum.fs.rt.AuthenticationException: Authorization failed, please review identities provided in service context "temporary/"
I have verified that the credentails are correct and also is in classpath. I can otherwise access the service from browser at
Is there something that I am doing incorrectly in the client that I have written?

Thank you
Mick Barry
Java Developer
Join our community to see this answer!
Unlock 1 Answer and 5 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 5 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros