FileDocCategorySizeDatePackage
deleteBusiness.javaAPI DocExample2364Tue Oct 09 11:03:40 BST 2001com.ecerami.uddi

deleteBusiness

public class deleteBusiness extends Object
UDDI Program: deletes the BusinessEntity Specify username, password and businesskey on command line. Example usage: java saveBusiness ethan@ecerami.com password ff0e960a-6375-4b3f-8fa3-5921a080b1c2

Fields Summary
private AuthToken
token
private UDDIProxy
proxy
Constructors Summary
public deleteBusiness(AuthToken token)
Constructor

param
token UDDI Authentication Token

    this.token = token;
  
Methods Summary
public DispositionReportdelete_business(java.lang.String businessKey)
Delete Business Entity

param
businessKey Business Key

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

    DispositionReport dr =
      proxy.delete_business(token.getAuthInfoString(), businessKey);
    return dr;
  
public static voidmain(java.lang.String[] args)
Main Method

    deleteBusiness publish = null;
    try {
      System.out.println("Deleting Business");
      AuthToken token = UDDIUtil.get_authentication_token(args[0], args[1]);
      System.out.println("Authentication Token:  "+token.getAuthInfoString());
      publish = new deleteBusiness(token);
      DispositionReport dr = publish.delete_business (args[2]);
      UDDIUtil.printDispositionReport (dr);
    } catch (MalformedURLException e) {
      e.printStackTrace();
    } catch (SOAPException e) {
      e.printStackTrace();
    } catch (UDDIException e) {
      DispositionReport dr = e.getDispositionReport();
      UDDIUtil.printDispositionReport (dr);
      e.printStackTrace();
    }