Package com.sun.xml.registry.uddi.bindings_v2_2

Examples of com.sun.xml.registry.uddi.bindings_v2_2.DeleteService


    /**
     * Create an instance of {@link TModelInstanceInfo }
     *
     */
    public TModelInstanceInfo createTModelInstanceInfo() {
        return new TModelInstanceInfo();
    }
View Full Code Here


    /**
     * Create an instance of {@link TModelList }
     *
     */
    public TModelList createTModelList() {
        return new TModelList();
    }
View Full Code Here

    /**
     * Create an instance of {@link ValidateValues }
     *
     */
    public ValidateValues createValidateValues() {
        return new ValidateValues();
    }
View Full Code Here

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

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

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

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

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

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

                r.getPublisherAssertion().addAll(MapPublisherAssertion(body.getPublisherAssertion()));
                return r;
        }
       
        public static DeleteService MapDeleteService(org.uddi.api_v3.DeleteService body) {
                DeleteService r = new DeleteService();
                r.setGeneric(VERSION);
               
                r.setAuthInfo(body.getAuthInfo());
                r.getServiceKey().addAll(body.getServiceKey());
                return r;
        }
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, 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 + "-" + i);
        publication.deleteService(ds);
        logger.debug("Deleted Service with key " + 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

        }
        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

TOP

Related Classes of com.sun.xml.registry.uddi.bindings_v2_2.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.