FileDocCategorySizeDatePackage
UDDIUtil.javaAPI DocExample2018Tue Oct 09 11:03:40 BST 2001com.ecerami.uddi

UDDIUtil

public class UDDIUtil extends Object
UDDI Utility Class Provides static methods for 1) Authenticating Users 2) Printing UDDI Disposition Reports

Fields Summary
Constructors Summary
Methods Summary
public static com.ibm.uddi.response.AuthTokenget_authentication_token(java.lang.String login, java.lang.String password)
Authenticate User and Retrieve Authentication Token

param
login UDDI Login Name
param
password UDDI password
return
UDDI Authentication Token

    AuthToken token;
    UDDIProxy proxy;

    //  Add SSL Provider
    System.setProperty("java.protocol.handler.pkgs",
      "com.sun.net.ssl.internal.www.protocol");
    Security.addProvider (new com.sun.net.ssl.internal.ssl.Provider());

    //  Point to Microsoft Test Publish URL (SSL)
    proxy = new UDDIProxy();
    proxy.setPublishURL("https://test.uddi.microsoft.com/publish");

    //  Obtain authentication token
    token = proxy.get_authToken(login, password);
    return token;
  
public static voidprintDispositionReport(DispositionReport dr)
Print Disposition Report

param
dr UDDI Disposition Report

    if (dr!=null) {
      System.out.println("UDDI Disposition Report:" +
        "\n errno:"    + dr.getErrno() +
        "\n errCode:"  + dr.getErrCode() +
        "\n errInfoText:" + dr.getErrInfoText());
    }