예제 #1
0
 @BeforeClass
 public static void setup() throws ConfigurationException, RemoteException {
   Registry.start();
   logger.debug("Getting auth tokens..");
   try {
     api010.saveJoePublisher();
     api010.saveSamSyndicator();
     UDDISecurityPortType security = new UDDISecurityImpl();
     authInfoJoe =
         TckSecurity.getAuthToken(
             security, TckPublisher.getJoePublisherId(), TckPublisher.getJoePassword());
     authInfoSam =
         TckSecurity.getAuthToken(
             security, TckPublisher.getSamPublisherId(), TckPublisher.getSamPassword());
   } catch (DispositionReportFaultMessage e) {
     logger.error(e.getMessage(), e);
     Assert.fail("Could not obtain authInfo token.");
   }
 }
 public static void main(String[] args) {
   try {
     myAuthToken = getAuthToken("root", "root");
   } catch (Exception e1) {
     // TODO Auto-generated catch block
     e1.printStackTrace();
   }
   try {
     new DeleteBusiness(transport).deleteBusiness(myAuthToken.getAuthInfo(), "My Service");
   } catch (DispositionReportFaultMessage e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   } catch (RemoteException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   } catch (TransportException e) {
     // TODO Auto-generated catch block
     e.printStackTrace();
   }
 }