Package org.apache.juddi.api_v3

Examples of org.apache.juddi.api_v3.ObjectFactory


      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

    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

           JUDDIApiPortType apiService = transport.getJUDDIApiService();
           PublisherDetail publisherDetail = apiService.getPublisherDetail(getPublisherDetail);
           //if the publisher is an admin, then return ALL publishers
           if ("true".equalsIgnoreCase(publisherDetail.getPublisher().get(0).getIsAdmin())) {
            
             GetAllPublisherDetail getAllPublisherDetail = new GetAllPublisherDetail();
         getAllPublisherDetail.setAuthInfo(authToken);
         logger.debug("GetAllPublisherDetail " + getAllPublisherDetail + " sending get AllPublisherDetail request..");
         publisherDetail = apiService.getAllPublisherDetail(getAllPublisherDetail);
           }
           for (org.apache.juddi.api_v3.Publisher apiPublisher : publisherDetail.getPublisher()) {
        Publisher publisher = new Publisher();
View Full Code Here

    saveClientSubscriptionInfo.getClientSubscriptionInfo().add(clientSubscriptionInfo);
   
    try {
      ClientSubscriptionInfoDetail detail = publisher.saveClientSubscriptionInfo(saveClientSubscriptionInfo);
   
      GetClientSubscriptionInfoDetail getDetail = new GetClientSubscriptionInfoDetail();
      getDetail.setAuthInfo(authInfo);
      getDetail.getClientSubscriptionKey().add("mykey");
     
      Assert.assertEquals("mykey", detail.getClientSubscriptionInfo().get(0).getSubscriptionKey());
     
      //ClientSubscriptionInfoDetail detail2 = publisher.getClientSubscriptionInfoDetail(getDetail);
      //Assert.assertEquals("mykey", detail2.getClientSubscriptionInfo().get(0).getSubscriptionKey());
View Full Code Here

      Assert.assertEquals(2,clerkDetail.getClerk().size());
     
      ClientSubscriptionInfoDetail detail = publisher.saveClientSubscriptionInfo(saveClientSubscriptionInfo);
      Assert.assertEquals("mykey", detail.getClientSubscriptionInfo().get(0).getSubscriptionKey());
     
      GetClientSubscriptionInfoDetail getDetail = new GetClientSubscriptionInfoDetail();
      getDetail.setAuthInfo(authInfoJoe);
      getDetail.getClientSubscriptionKey().add("mykey");
     
      ClientSubscriptionInfoDetail detail2 = publisher.getClientSubscriptionInfoDetail(getDetail);
      Assert.assertEquals("mykey", detail2.getClientSubscriptionInfo().get(0).getSubscriptionKey());
 
      DeleteClientSubscriptionInfo deleteInfo = new DeleteClientSubscriptionInfo();
View Full Code Here

TOP

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

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.