this.credFile = credFile;
this.preserveOwnership = preserveOwnership;
UDDIClient clerkManager = new UDDIClient(config);
clerkManager.start();
UDDIClerk clerk = clerkManager.getClerk(name);
// a ClerkManager can be a client to multiple UDDI nodes, so
// supply the nodeName (defined in your uddi.xml.
// The transport can be WS, inVM, RMI etc which is defined in the uddi.xml
Transport transport = clerkManager.getTransport(name);
// Now you create a reference to the UDDI API
security = transport.getUDDISecurityService();
publish = transport.getUDDIPublishService();
inquiry = transport.getUDDIInquiryService();
juddi = transport.getJUDDIApiService();
this.username = user;
if (username == null || pass == null) {
username = clerk.getPublisher();
pass = clerk.getPassword();
}
if (username == null || pass==null) {
System.out.println("No credentials are available. This will probably fail spectacularly");
} else {
GetAuthToken getAuthTokenRoot = new GetAuthToken();