Package org.uddi.api_v2

Examples of org.uddi.api_v2.DeleteService


        }
        if (method.equalsIgnoreCase("deletePublisherAssertions")) {
            JAXB.marshal(new DeletePublisherAssertions(), sw);
        }
        if (method.equalsIgnoreCase("deleteService")) {
            JAXB.marshal(new DeleteService(), sw);
        }
        if (method.equalsIgnoreCase("deleteTModel")) {
            JAXB.marshal(new DeleteTModel(), sw);
        }
        if (method.equalsIgnoreCase("getAssertionStatusReport")) {
View Full Code Here


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

 
  public void deleteServices(String authInfo, int businessInt, String serviceKey, int numberOfCopies) {
    try {
      for (int i=0; i<numberOfCopies; i++) {
        // Delete the entity and make sure it is removed
        DeleteService ds = new DeleteService();
        ds.setAuthInfo(authInfo);
        ds.getServiceKey().add(serviceKey + "-" + businessInt + "-" + i);
        publication.deleteService(ds);
        logger.debug("Deleted Service with key " + businessInt + "-" + serviceKey + "-" + i);
      }
    }
    catch(Exception e) {
View Full Code Here

   */
  @Override
  protected void execute() throws Exception
  {
   
    DeleteService deleteService = new DeleteService();
    deleteService.setAuthInfo(authenticationToken.getAuthInfo());
    deleteService.getServiceKey().add(serviceInfo.getServiceKey());
   
    // execute the DeleteService operation.
    publishService.deleteService(deleteService);
  }
View Full Code Here

   *
   * @exception RegistryV3Exception;
   */
  public DispositionReport deleteService(String authInfo,
      String[] serviceKeyArray) throws RegistryV3Exception {
    DeleteService request = this.objectFactory.createDeleteService();
   
    if (authInfo != null) {
      request.setAuthInfo(authInfo);
    }

    if (serviceKeyArray != null) {
      request.getServiceKey().addAll(Arrays.asList(serviceKeyArray));
    }

        DispositionReport dr = new DispositionReport();
        JAXBElement<?> o = execute(this.objectFactory.createDeleteService(request),
            this.getPublishURI());
View Full Code Here

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

 
  public void deleteServices(String authInfo, int businessInt, String serviceKey, int numberOfCopies) {
    try {
      for (int i=0; i<numberOfCopies; i++) {
        // Delete the entity and make sure it is removed
        DeleteService ds = new DeleteService();
        ds.setAuthInfo(authInfo);
        ds.getServiceKey().add(serviceKey + "-" + businessInt + "-" + i);
        publication.deleteService(ds);
        logger.debug("Deleted Service with key " + businessInt + "-" + serviceKey + "-" + i);
      }
    }
    catch(Exception e) {
View Full Code Here

   */
  public void unRegisterService(String serviceKey, Node node) {
    log.info("UnRegistering the service " + serviceKey);
    try {
      String authToken = getAuthToken(node.getSecurityUrl());
      DeleteService deleteService = new DeleteService();
      deleteService.setAuthInfo(authToken);
      deleteService.getServiceKey().add(serviceKey);
      getUDDINode().getTransport().getUDDIPublishService(node.getPublishUrl()).deleteService(deleteService);
    } catch (Exception e) {
      log.error("Unable to register service " + serviceKey
          + " ." + e.getMessage(),e);
    }
View Full Code Here

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

        public static DeleteService MapDeleteService(org.uddi.api_v2.DeleteService body) {
                if (body == null) {
                        return null;
                }
                DeleteService r = new DeleteService();
                r.setAuthInfo(body.getAuthInfo());
                r.getServiceKey().addAll(body.getServiceKey());
                return r;
        }
View Full Code Here

TOP

Related Classes of org.uddi.api_v2.DeleteService

Copyright © 2018 www.massapicom. 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.