Package org.apache.juddi.v3.client.transport.wrapper

Examples of org.apache.juddi.v3.client.transport.wrapper.Publish3to2


    }
    logger.debug("Getting auth tokens..");
    try {
           Class<?> transportClass = ClassUtil.forName(clazz, Transport.class);
           if (transportClass!=null) {
             Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance("default");
             security = transport.getUDDISecurityService();
             GetAuthToken getAuthToken = new GetAuthToken();
             getAuthToken.setUserID("root");
             getAuthToken.setCred("");
             authInfo = security.getAuthToken(getAuthToken).getAuthInfo();
             publisher = transport.getJUDDIApiService();
           } else {
             Assert.fail();
           }
       } catch (Exception e) {
         logger.error(e.getMessage(), e);
View Full Code Here


     public void testAuthToken() {
       try {
         String clazz = UDDIClientContainer.getDefaultTransportClass();
           Class<?> transportClass = ClassUtil.forName(clazz, Transport.class);
           if (transportClass!=null) {
             Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance("default");
            
             UDDISecurityPortType securityService = transport.getUDDISecurityService();
             GetAuthToken getAuthToken = new GetAuthToken();
             getAuthToken.setUserID("root");
             getAuthToken.setCred("");
             AuthToken authToken = securityService.getAuthToken(getAuthToken);
             System.out.println(authToken.getAuthInfo());
View Full Code Here

 
  public Node inquire(Element uddiReq) throws Exception {
    UDDIClerkManager manager = UDDIClientContainer.getUDDIClerkManager(null);
    String clazz = manager.getClientConfig().getUDDINode(DEFAULT_NODE_NAME).getProxyTransport();
        Class<?> transportClass = Loader.loadClass(clazz);
        Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance(DEFAULT_NODE_NAME);
    UDDIInquiryPortType inquiry = transport.getUDDIInquiryService();
       
      //new RequestHandler on it's own thread
      RequestHandler requestHandler = new RequestHandler();
      requestHandler.setPortType(inquiry);
       
View Full Code Here

    }
    logger.debug("Getting auth tokens..");
    try {
           Class<?> transportClass = ClassUtil.forName(clazz, Transport.class);
           if (transportClass!=null) {
             Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance("default");
            
             UDDISecurityPortType security = transport.getUDDISecurityService();
             authInfoJoe = TckSecurity.getAuthToken(security, TckPublisher.JOE_PUBLISHER_ID,  TckPublisher.JOE_PUBLISHER_CRED);
             Assert.assertNotNull(authInfoJoe);
            
             UDDIPublicationPortType publication = transport.getUDDIPublishService();
             UDDIInquiryPortType inquiry = transport.getUDDIInquiryService();
            
             tckTModel  = new TckTModel(publication, inquiry);
             tckBusiness = new TckBusiness(publication, inquiry);
             tckBusinessService = new TckBusinessService(publication, inquiry);
             tckBindingTemplate = new TckBindingTemplate(publication, inquiry);
View Full Code Here

    }
    logger.debug("Getting subscriber proxy..");
    try {
           Class<?> transportClass = ClassUtil.forName(clazz, Transport.class);
           if (transportClass!=null) {
             Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance("default");
            
             UDDISecurityPortType security = transport.getUDDISecurityService();
             authInfoJoe = TckSecurity.getAuthToken(security, TckPublisher.JOE_PUBLISHER_ID, TckPublisher.JOE_PUBLISHER_CRED);
             Assert.assertNotNull(authInfoJoe);
             authInfoSam = TckSecurity.getAuthToken(security, TckPublisher.SAM_SYNDICATOR_ID, TckPublisher.SAM_SYNDICATOR_CRED);
             Assert.assertNotNull(authInfoSam);
            
             UDDIPublicationPortType publication = transport.getUDDIPublishService();
             UDDIInquiryPortType inquiry = transport.getUDDIInquiryService();
             UDDISubscriptionPortType subscription = transport.getUDDISubscriptionService();

             tckTModel  = new TckTModel(publication, inquiry);
             tckBusiness = new TckBusiness(publication, inquiry);
             tckBusinessService = new TckBusinessService(publication, inquiry);
             tckBindingTemplate = new TckBindingTemplate(publication, inquiry);
View Full Code Here

        try {
            String clazz = UDDIClientContainer.getUDDIClerkManager(null).
              getClientConfig().getUDDINode("default").getProxyTransport();
            Class<?> transportClass = ClassUtil.forName(clazz, Transport.class);
      if (transportClass!=null) {
        Transport transport = (Transport) transportClass.
          getConstructor(String.class).newInstance("default");

        security = transport.getUDDISecurityService();
        juddiApi = transport.getJUDDIApiService();
        publish = transport.getUDDIPublishService();
     
    } catch (Exception e) {
      e.printStackTrace();
   
  }
View Full Code Here

    }
    logger.debug("Getting auth tokens..");
    try {
           Class<?> transportClass = ClassUtil.forName(clazz, Transport.class);
           if (transportClass!=null) {
             Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance("default");
            
             UDDISecurityPortType security = transport.getUDDISecurityService();
             authInfoJoe = TckSecurity.getAuthToken(security, TckPublisher.JOE_PUBLISHER_ID,  TckPublisher.JOE_PUBLISHER_CRED);
          authInfoSam = TckSecurity.getAuthToken(security, TckPublisher.SAM_SYNDICATOR_ID,  TckPublisher.SAM_SYNDICATOR_CRED);
             Assert.assertNotNull(authInfoJoe);
             Assert.assertNotNull(authInfoSam);
            
             UDDIPublicationPortType publication = transport.getUDDIPublishService();
             UDDIInquiryPortType inquiry = transport.getUDDIInquiryService();
            
             tckTModel  = new TckTModel(publication, inquiry);
             tckBusiness = new TckBusiness(publication, inquiry);
             tckBusinessService = new TckBusinessService(publication, inquiry);
           } else {
View Full Code Here

    }
    logger.debug("Getting auth tokens..");
    try {
           Class<?> transportClass = ClassUtil.forName(clazz, Transport.class);
           if (transportClass!=null) {
             Transport transport = (Transport) transportClass.getConstructor(String.class).newInstance("default");
            
             UDDISecurityPortType security = transport.getUDDISecurityService();
             authInfoJoe = TckSecurity.getAuthToken(security, TckPublisher.JOE_PUBLISHER_ID,  TckPublisher.JOE_PUBLISHER_CRED);
          authInfoSam = TckSecurity.getAuthToken(security, TckPublisher.SAM_SYNDICATOR_ID,  TckPublisher.SAM_SYNDICATOR_CRED);
             Assert.assertNotNull(authInfoJoe);
             Assert.assertNotNull(authInfoSam);
            
             UDDIPublicationPortType publication = transport.getUDDIPublishService();
             UDDIInquiryPortType inquiry = transport.getUDDIInquiryService();
             tckTModel  = new TckTModel(publication, inquiry);
           } else {
             Assert.fail();
           }
       } catch (Exception e) {
View Full Code Here

        try {
            String clazz = UDDIClientContainer.getUDDIClerkManager(null).
              getClientConfig().getUDDINode("default").getProxyTransport();
            Class<?> transportClass = ClassUtil.forName(clazz, Transport.class);
      if (transportClass!=null) {
        Transport transport = (Transport) transportClass.
          getConstructor(String.class).newInstance("default");
        security = transport.getUDDISecurityService();
     
    } catch (Exception e) {
      e.printStackTrace();
   
  }
View Full Code Here

 
  public static Transport getTransport(ServletContext servletContext)
       throws ConfigurationException, ClassNotFoundException, IllegalArgumentException,
        SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
  {
    Transport transport = (Transport) servletContext.getAttribute(JUDDI_CLIENT_TRANSPORT_INSTANCE);
    if (transport==null) {
      UDDIClerkManager manager = getUDDIClerkManager(servletContext);
      UDDINode node = getUDDIHomeNode(servletContext);
      Class<?> transportClass = ClassUtil.forName(node.getProxyTransport(), Transport.class);
      transport = (Transport) transportClass.getConstructor(String.class,String.class).newInstance(manager.getName(),node.getName());
View Full Code Here

TOP

Related Classes of org.apache.juddi.v3.client.transport.wrapper.Publish3to2

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.