Package org.apache.juddi.api_v3

Examples of org.apache.juddi.api_v3.DeleteClientSubscriptionInfo


      Assert.assertEquals("mykey", detail.getClientSubscriptionInfo().get(0).getSubscriptionKey());
     
      //ClientSubscriptionInfoDetail detail2 = publisher.getClientSubscriptionInfoDetail(getDetail);
      //Assert.assertEquals("mykey", detail2.getClientSubscriptionInfo().get(0).getSubscriptionKey());
 
      DeleteClientSubscriptionInfo deleteInfo = new DeleteClientSubscriptionInfo();
      deleteInfo.setAuthInfo(authInfo);
      deleteInfo.getSubscriptionKey().add("mykey");
      publisher.deleteClientSubscriptionInfo(deleteInfo);
     
//      try {
//        @SuppressWarnings("unused")
//        ClientSubscriptionInfoDetail detail3 = publisher.getClientSubscriptionInfoDetail(getDetail);
View Full Code Here


      try {
        //now remove it from the listener UDDI server too
        Transport transport = WebHelper.getTransport(session.getServletContext());
        JUDDIApiPortType juddiApiService = transport.getJUDDIApiService();
       
        DeleteClientSubscriptionInfo deleteClientSubscriptionInfo = new DeleteClientSubscriptionInfo();
        deleteClientSubscriptionInfo.setAuthInfo(userAuthToken);
        deleteClientSubscriptionInfo.getSubscriptionKey().add(modelSubscription.getSubscriptionKey());
        //remove the clientSubscription to the listening UDDI default server.
        juddiApiService.deleteClientSubscriptionInfo(deleteClientSubscriptionInfo);
        logger.info("Deleted ClientSubscriptionInfo to the default UDDI server");
       
        response.setSuccess(true);
View Full Code Here

      getDetail.getClientSubscriptionKey().add("mykey");
     
      ClientSubscriptionInfoDetail detail2 = publisher.getClientSubscriptionInfoDetail(getDetail);
      Assert.assertEquals("mykey", detail2.getClientSubscriptionInfo().get(0).getSubscriptionKey());
 
      DeleteClientSubscriptionInfo deleteInfo = new DeleteClientSubscriptionInfo();
      deleteInfo.setAuthInfo(authInfoJoe);
      deleteInfo.getSubscriptionKey().add("mykey");
      publisher.deleteClientSubscriptionInfo(deleteInfo);
     
      try {
        @SuppressWarnings("unused")
        ClientSubscriptionInfoDetail detail3 = publisher.getClientSubscriptionInfoDetail(getDetail);
View Full Code Here

                        req.setAuthInfo(authInfoJoe);
                        req.getClientSubscriptionKey().addAll(keys);
      ClientSubscriptionInfoDetail detail2 = publisher.getClientSubscriptionInfoDetail(req);
      Assert.assertEquals("mykey", detail2.getClientSubscriptionInfo().get(0).getSubscriptionKey());
 
      DeleteClientSubscriptionInfo deleteInfo = new DeleteClientSubscriptionInfo();
      deleteInfo.setAuthInfo(authInfoJoe);
      deleteInfo.getSubscriptionKey().add("mykey");
      publisher.deleteClientSubscriptionInfo(deleteInfo);
     
      try {
        @SuppressWarnings("unused")
                                       
View Full Code Here

                        saveClerk(toClerk);
                        ClientSubscriptionInfoDetail detail = publisher.saveClientSubscriptionInfo(saveClientSubscriptionInfo);

                        Assert.assertEquals("mykey", detail.getClientSubscriptionInfo().get(0).getSubscriptionKey());

                        DeleteClientSubscriptionInfo deleteInfo = new DeleteClientSubscriptionInfo();
                        deleteInfo.setAuthInfo(authInfo);
                        deleteInfo.getSubscriptionKey().add("mykey");
                        publisher.deleteClientSubscriptionInfo(deleteInfo);

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

                }
                return "Success";
        }

        private String delete_ClientSubscriptionInfo(HttpServletRequest parameters) {
                DeleteClientSubscriptionInfo sb = new DeleteClientSubscriptionInfo();
                sb.getSubscriptionKey().add(parameters.getParameter("delete_ClientSubscriptionInfoKEY"));
                sb.setAuthInfo(GetToken());
                try {
                        juddi.deleteClientSubscriptionInfo(sb);
                } catch (Exception ex) {
                        if (isExceptionExpiration(ex)) {
                                token = null;
                                sb.setAuthInfo(GetToken());
                                try {
                                        juddi.deleteClientSubscriptionInfo(sb);
                                } catch (Exception ex1) {
                                        return HandleException(ex);
                                }
View Full Code Here

    try {
      String rootPublisherStr = AppConfig.getConfiguration().getString(Property.JUDDI_ROOT_PUBLISHER);
      authInfo = TckSecurity.getAuthToken(security, rootPublisherStr, "");
      logger.debug("Delete publisher: " + publisherId);
      //Now deleting this publisher
      DeletePublisher dp = new DeletePublisher();
      dp.setAuthInfo(authInfo);
      dp.getPublisherId().add(publisherId);
      publisher.deletePublisher(dp);
     
      logger.info("Querying for publisher: " + publisherId + " after deletion.");
      //Querying for this publisher to make sure it's really gone
      //We're expecting a invalid Key exception at this point.
View Full Code Here

    try {
      String rootPublisherStr = AppConfig.getConfiguration().getString(Property.JUDDI_ROOT_PUBLISHER);
      authInfo = TckSecurity.getAuthToken(security, rootPublisherStr, "");
      logger.debug("Delete publisher: " + publisherId);
      //Now deleting this publisher
      DeletePublisher dp = new DeletePublisher();
      dp.setAuthInfo(authInfo);
      dp.getPublisherId().add(publisherId);
      publisher.deletePublisher(dp);
     
      logger.info("Querying for publisher: " + publisherId + " after deletion.");
      //Querying for this publisher to make sure it's really gone
      //We're expecting a invalid Key exception at this point.
View Full Code Here

    HttpSession session = request.getSession();
    JUDDIApiResponse response = new JUDDIApiResponse();
    try {
       Transport transport = WebHelper.getTransport(session.getServletContext());
            JUDDIApiPortType apiService = transport.getJUDDIApiService();
            DeletePublisher deletePublisher = new DeletePublisher();
           deletePublisher.setAuthInfo(token);
            deletePublisher.getPublisherId().add(publisherId);
            apiService.deletePublisher(deletePublisher);
           response.setSuccess(true);
    } catch (Exception e) {
         logger.error("Could not obtain publishers. " + e.getMessage(), e);
         response.setSuccess(false);
View Full Code Here

     }
   }
  
   @Test
   public void testGetAllPublishers(){
    GetAllPublisherDetail gp = new GetAllPublisherDetail();
    gp.setAuthInfo(authInfo);
    try {
      PublisherDetail publisherDetail = publisher.getAllPublisherDetail(gp);
      Assert.assertTrue(publisherDetail.getPublisher().size() > 1);
    } catch (Exception e) {
      Assert.fail();
View Full Code Here

TOP

Related Classes of org.apache.juddi.api_v3.DeleteClientSubscriptionInfo

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.