Package org.uddi.api_v2

Examples of org.uddi.api_v2.DeleteBinding


   */
  public void unRegisterBinding(String bindingKey, Node node) {
    log.info("UnRegistering binding key " + bindingKey);
    try {
      String authToken = getAuthToken(node.getSecurityUrl());
      DeleteBinding deleteBinding = new DeleteBinding();
      deleteBinding.setAuthInfo(authToken);
      deleteBinding.getBindingKey().add(bindingKey);
      getUDDINode().getTransport().getUDDIPublishService(node.getPublishUrl()).deleteBinding(deleteBinding);
    } catch (Exception e) {
      log.error("Unable to unregister bindingkey " + bindingKey
          + " ." + e.getMessage(),e);
    }
View Full Code Here


        }

        public void deleteBinding(String authInfo, String bindingKey) {
                try {
                        // Delete the entity and make sure it is removed
                        DeleteBinding db = new DeleteBinding();
                        db.setAuthInfo(authInfo);

                        db.getBindingKey().add(bindingKey);
                        publication.deleteBinding(db);
                } catch (Exception e) {
                        logger.error(e.getMessage(), e);
                        Assert.fail("No exception should be thrown.");
                }
View Full Code Here

                        try {
                                UDDIClerk clerk = client.getClerk(cfg_node_name);
                                Transport tp = client.getTransport(cfg_node_name);
                                String token = clerk.getAuthToken(clerk.getUDDINode().getSecurityUrl());
                                UDDIPublicationPortType uddiPublishService = tp.getUDDIPublishService();
                                DeleteBinding db = new DeleteBinding();
                                db.setAuthInfo(token);
                                db.getBindingKey().add(bindingKey);
                                uddiPublishService.deleteBinding(db);
                                log.info("Subscription callback binding unregistered.");
                        } catch (Exception ex) {
                                log.error("Unable to unregister binding " + bindingKey, ex);
                        }
View Full Code Here

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

        StringWriter sw = new StringWriter();
        if (method.equalsIgnoreCase("addPublisherAssertions")) {
            JAXB.marshal(new AddPublisherAssertions(), sw);
        }
        if (method.equalsIgnoreCase("deleteBinding")) {
            JAXB.marshal(new DeleteBinding(), sw);
        }
        if (method.equalsIgnoreCase("deleteBusiness")) {
            JAXB.marshal(new DeleteBusiness(), sw);
        }
        if (method.equalsIgnoreCase("deletePublisherAssertions")) {
View Full Code Here

   *
   * @exception RegistryV3Exception;
   */
  public DispositionReport deleteBinding(String authInfo,
      String[] bindingKeyArray) throws RegistryV3Exception {
    DeleteBinding request = this.objectFactory.createDeleteBinding();

    if (authInfo != null) {
      request.setAuthInfo(authInfo);
    }

    if (bindingKeyArray != null) {
      request.getBindingKey().addAll(Arrays.asList(bindingKeyArray));
    }

        DispositionReport dr = new DispositionReport();
        JAXBElement<?> o = execute(this.objectFactory.createDeleteBinding(request), this.getPublishURI());
        if (o!=null) {
View Full Code Here

   */
  public void unRegisterBinding(String bindingKey, Node node) {
    log.info("UnRegistering binding key " + bindingKey);
    try {
      String authToken = getAuthToken(node.getSecurityUrl());
      DeleteBinding deleteBinding = new DeleteBinding();
      deleteBinding.setAuthInfo(authToken);
      deleteBinding.getBindingKey().add(bindingKey);
      getUDDINode().getTransport().getUDDIPublishService(node.getPublishUrl()).deleteBinding(deleteBinding);
    } catch (Exception e) {
      log.error("Unable to unregister bindingkey " + bindingKey
          + " ." + e.getMessage(),e);
    }
View Full Code Here

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

         * @param node
         */
        public void unRegisterBinding(String bindingKey, Node node) {
                log.info("UnRegistering binding key " + bindingKey);
                try {
                        DeleteBinding deleteBinding = new DeleteBinding();
                        deleteBinding.setAuthInfo(getAuthToken(node.getSecurityUrl()));
                        deleteBinding.getBindingKey().add(bindingKey);
                        getUDDINode().getTransport().getUDDIPublishService(node.getPublishUrl()).deleteBinding(deleteBinding);
                } catch (Exception e) {
                        log.error("Unable to unregister bindingkey " + bindingKey
                                + " ." + e.getMessage(), e);
                }
View Full Code Here

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

TOP

Related Classes of org.uddi.api_v2.DeleteBinding

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.