//login as root so we can create joe publisher
GetAuthToken getAuthTokenRoot = new GetAuthToken();
getAuthTokenRoot.setUserID("root");
getAuthTokenRoot.setCred("");
// Making API call that retrieves the authentication token for the 'root' user.
AuthToken rootAuthToken = security.getAuthToken(getAuthTokenRoot);
System.out.println ("root AUTHTOKEN = " + rootAuthToken.getAuthInfo());
//Creating joe publisher
JUDDIApiPortType juddiApi = uddiClient.getTransport("default").getJUDDIApiService();
Publisher p = new Publisher();
p.setAuthorizedName("joepublisher");
p.setPublisherName("Joe Publisher");
// Adding the publisher to the "save" structure, using the 'root' user authentication info and saving away.
SavePublisher sp = new SavePublisher();
sp.getPublisher().add(p);
sp.setAuthInfo(rootAuthToken.getAuthInfo());
juddiApi.savePublisher(sp);
//Joe should have a keyGenerator
TModel keyGenerator = new TModel();
keyGenerator.setTModelKey("uddi:uddi.joepublisher.com:keygenerator");