Please I need help usiing juddi client libraries. I'm trying to get a valid authentication token with the java client. I tried this code in user manual and it dosent work. ClientConfig is static reference and i cant invoque, UDDI_PROXY_TRANSPORT it doesn't exist. What are the libraries i need??? Why Is not present in this code juddiv3.properies???? Why uddi.xml??? I am desperate. I need full code example to get the authentication token. ty all!
public void testAuthToken() { try { String clazz = ClientConfig.getConfiguration().getString( Property.UDDI_PROXY_TRANSPORT,Property.DEFAULT_UDDI_PROXY_TRANSPORT); Class<?> transportClass = Loader.loadClass(clazz); if (transportClass!=null) { Transport transport = (Transport) transportClass.newInstance(); UDDISecurityPortType securityService = transport.getSecurityService(); GetAuthToken getAuthToken = new GetAuthToken(); getAuthToken.setUserID("root"); getAuthToken.setCred(""); AuthToken authToken = securityService.getAuthToken(getAuthToken); System.out.println(authToken.getAuthInfo()); Assert.assertNotNull(authToken); } else { Assert.fail(); } } catch (Exception e) { e.printStackTrace(); Assert.fail(); } } -- View this message in context: http://old.nabble.com/Help-with-juddi-java-client-getting-authentication-token-tp27702594p27702594.html Sent from the jUDDI - User mailing list archive at Nabble.com.