Hello everyone, At work, I have access to a SAS 9.4 Workspace Server through SAS Enterprise Guide 7.1. The problem is that I'm trying to create a Java client, but I can't get access to te Workspace Server. The first step that I do is to connect to the Metadata Server, then I try to connect to the workspace server, but I can't use the same user and password that I've used to connect to the Metadata Server. In Fact, when I inspect the properties of the server in SAS Enterprise guide, it looks like that it connects to the Workspace Server as a user named sassrv. I'm not an admin nor I have access to someone related to that, so I can't make or request a reconfiguration. ¿Is there any way to get that sassrv info? or ¿do I need to consider something else? The following code is the one that I'm using right now: public class PruebaSAS94_2 { public static void main(String[] argv) { String classID = Server.CLSID_SASOMI; String host = "zzzz.xxxx.yyyy.com"; int port = 8561; Server server = new BridgeServer(classID,host,port); ConnectionFactoryConfiguration cxfConfig_omr = new ManualConnectionFactoryConfiguration(server); ConnectionFactoryManager cxfManager = new ConnectionFactoryManager(); try { ConnectionFactoryInterface cxf = cxfManager.getFactory(cxfConfig_omr); //cxfManager. String userName = "myuser"; String password = "MyPassword"; //this connection to the MetaData Server works fine ConnectionInterface cx_omr = cxf.getConnection(userName,password); org.omg.CORBA.Object obj_omr = cx_omr.getObject(); IOMI iOMI = IOMIHelper.narrow(obj_omr); // Step 5. Create a connection factory configuration for the server by passing // the server logical name to the metadata server. String reposID = "A0000001.XXXXXXXX"; String reposName= "Foundation"; String logicalServerID = "A53ONYSW.YYYYYYYY"; String logicalServerName= "SASApp - Logical Workspace Server"; ConnectionFactoryConfiguration cxfConfig = new OMRConnectionFactoryConfiguration(iOMI,reposID,logicalServerName); //System.out.println(cxfConfig.getRepositoryID()); // Step 6: Get a connection factory that matches the server's connection // factory configuration. ConnectionFactoryInterface cxf2 = cxfManager.getFactory(cxfConfig); //cxf2. // Set the credentials for the server connection. String user = userName; String pass = password; String domain = "DefaultAuth"; // Step 7: Get a connection to the server. ConnectionInterface cx = cxf2.getConnection(user,pass,domain); // Step 8: Narrow the connection from the server. org.omg.CORBA.Object obj = cx.getObject(); IWorkspace iWorkspace = IWorkspaceHelper.narrow(obj); if(iWorkspace == null) System.out.println("This is null"); } catch (ConnectionFactoryException e) { // TODO Auto-generated catch block e.printStackTrace(); } } } BTW, the connection to the metadata server works fine, in fact, I got the repoId and logical server name from it. SAS Enterprise didn't required any special configuration to connect to the metadata server and use the workspace server (That is located in another virtual? machine). The error that I get in my java client, when I try to connect to the Workspace Server, is that my user or the password is incorrect. regards, Jaime
... View more