Examples of DeleteBusiness


Examples of org.uddi.api_v3.DeleteBusiness

  public void deleteBusinesses(String authInfo, String businessXML, String businessKey, int numberOfCopies) {
    try {
      for (int i=0; i<numberOfCopies; i++) {
        // Delete the entity and make sure it is removed
        String key = businessKey + "-" + i;
        DeleteBusiness db = new DeleteBusiness();
        db.setAuthInfo(authInfo);
        db.getBusinessKey().add(key);
        publication.deleteBusiness(db);
        logger.debug("Deleted business with key " + key);
      }
     
    } catch(Exception e) {
View Full Code Here

Examples of org.uddi.api_v3.DeleteBusiness

 
 
  public void deleteBusiness(String authInfo, String businessXML, String businessKey) {
    try {
      // Delete the entity and make sure it is removed
      DeleteBusiness db = new DeleteBusiness();
      db.setAuthInfo(authInfo);
      db.getBusinessKey().add(businessKey);
      publication.deleteBusiness(db);
     
    } catch(Exception e) {
      logger.error(e.getMessage(),e);
      Assert.fail("No exception should be thrown");
View Full Code Here

Examples of org.uddi.api_v3.DeleteBusiness

         * @param node
         */
        public void unRegisterBusiness(String businessKey, Node node) {
                log.info("UnRegistering the business " + businessKey);
                try {
                        DeleteBusiness deleteBusiness = new DeleteBusiness();
                        deleteBusiness.setAuthInfo(getAuthToken(node.getSecurityUrl()));
                        deleteBusiness.getBusinessKey().add(businessKey);
                        getUDDINode().getTransport().getUDDIPublishService(node.getPublishUrl()).deleteBusiness(deleteBusiness);
                } catch (Exception e) {
                        log.error("Unable to register service " + businessKey
                                + " ." + e.getMessage(), e);
                }
View Full Code Here

Examples of org.uddi.api_v3.DeleteBusiness

        be.getBusinessServices().getBusinessService().add(bs);

        sb.getBusinessEntity().add(be);
      
        BusinessDetail saveBusiness = publication.saveBusiness(sb);
        DeleteBusiness db = new DeleteBusiness();
        db.setAuthInfo(authInfoJoe);
        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
        publication.deleteBusiness(db);
    }
View Full Code Here

Examples of org.uddi.api_v3.DeleteBusiness

        be.getBusinessServices().getBusinessService().add(bs);

        sb.getBusinessEntity().add(be);
        try {
            BusinessDetail saveBusiness = publication.saveBusiness(sb);
            DeleteBusiness db = new DeleteBusiness();
            db.setAuthInfo(authInfoJoe);
            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
            publication.deleteBusiness(db);
            Assert.fail("request should have been rejected");

        } catch (ValueNotAllowedException ex) {
            HandleException(ex);
View Full Code Here

Examples of org.uddi.api_v3.DeleteBusiness

        be.getBusinessServices().getBusinessService().add(bs);

        sb.getBusinessEntity().add(be);
        try {
            BusinessDetail saveBusiness = publication.saveBusiness(sb);
            DeleteBusiness db = new DeleteBusiness();
            db.setAuthInfo(authInfoJoe);
            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
            publication.deleteBusiness(db);
            Assert.fail("request should have been rejected");

        } catch (ValueNotAllowedException ex) {
            HandleException(ex);
View Full Code Here

Examples of org.uddi.api_v3.DeleteBusiness

        be.getBusinessServices().getBusinessService().add(bs);

        sb.getBusinessEntity().add(be);
      
        BusinessDetail saveBusiness = publication.saveBusiness(sb);
        DeleteBusiness db = new DeleteBusiness();
        db.setAuthInfo(authInfoJoe);
        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
        publication.deleteBusiness(db);
    }
View Full Code Here

Examples of org.uddi.api_v3.DeleteBusiness

        be.getBusinessServices().getBusinessService().add(bs);

        sb.getBusinessEntity().add(be);
        try {
            BusinessDetail saveBusiness = publication.saveBusiness(sb);
            DeleteBusiness db = new DeleteBusiness();
            db.setAuthInfo(authInfoJoe);
            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
            publication.deleteBusiness(db);
            Assert.fail("request should have been rejected");

        } catch (ValueNotAllowedException ex) {
            HandleException(ex);
View Full Code Here

Examples of org.uddi.api_v3.DeleteBusiness

        be.getBusinessServices().getBusinessService().add(bs);

        sb.getBusinessEntity().add(be);
        try {
            BusinessDetail saveBusiness = publication.saveBusiness(sb);
            DeleteBusiness db = new DeleteBusiness();
            db.setAuthInfo(authInfoJoe);
            db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
            publication.deleteBusiness(db);
            Assert.fail("request should have been rejected");

        } catch (ValueNotAllowedException ex) {
            HandleException(ex);
View Full Code Here

Examples of org.uddi.api_v3.DeleteBusiness

        be.getBusinessServices().getBusinessService().add(bs);

        sb.getBusinessEntity().add(be);
    
        BusinessDetail saveBusiness = publication.saveBusiness(sb);
        DeleteBusiness db = new DeleteBusiness();
        db.setAuthInfo(authInfoJoe);
        db.getBusinessKey().add(saveBusiness.getBusinessEntity().get(0).getBusinessKey());
        publication.deleteBusiness(db);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.