Examples of UDDIClient


Examples of org.apache.juddi.v3.client.config.UDDIClient

        private void EnsureConfig() {
                if (clientConfig == null) {
                        String clazz = null;
                        try {
                                UDDIClient client = new UDDIClient();
                                clientConfig = client.getClientConfig();
                                try {
                                        style = AuthStyle.valueOf(clientConfig.getConfiguration().getString(PROP_AUTH_TYPE));
                                } catch (Exception ex) {
                                        log.warn("'UDDI_AUTH' is not defined in the config (" + PROP_AUTH_TYPE + ")! defaulting to UDDI_AUTH");
                                        style = AuthStyle.UDDI_AUTH;
                                }
//                                String newNodename = clientConfig.getConfiguration().getString(PROP_CONFIG_NODE);
//                                if (newNodename != null && !newNodename.equals("")) {
//                                        nodename = newNodename;
//                                }
                                if (nodename == null) {
                                        nodename = clientConfig.getConfiguration().getString(PROP_CONFIG_NODE);
                                }
                                if (nodename == null || nodename.equals("")) {
                                        log.warn("'node' is not defined in the config! defaulting to '" + DEFAULT_NODE_NAME +"'");
                                        nodename = DEFAULT_NODE_NAME;
                                }
                                UDDINode uddiNode = clientConfig.getUDDINode(nodename);

                                clazz = uddiNode.getProxyTransport();
                                if (clazz.contains("JAXWS")) {
                                        WS_Transport = true;
                                }

                                transport = client.getTransport(nodename);

                                security = transport.getUDDISecurityService();
                                inquiry = transport.getUDDIInquiryService();
                                subscription = transport.getUDDISubscriptionService();
                                publish = transport.getUDDIPublishService();
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClient

        @BeforeClass
        public static void startManager() throws ConfigurationException {

                logger.info("BPEL_020_IntegrationTest");
                manager = new UDDIClient();
                manager.start();

                logger.debug("Getting auth token for user riftsaw/riftsaw..");
                try {
                        Transport transport = manager.getTransport();
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClient

                this.myitemsonly = myItemsOnly;
                this.mappingsfile = mappingsfile;
                this.credFile = credFile;
                this.preserveOwnership = preserveOwnership;

                UDDIClient clerkManager = new UDDIClient(config);
                clerkManager.start();
                UDDIClerk clerk = clerkManager.getClerk(name);
                // a ClerkManager can be a client to multiple UDDI nodes, so
                // supply the nodeName (defined in your uddi.xml.
                // The transport can be WS, inVM, RMI etc which is defined in the uddi.xml
                Transport transport = clerkManager.getTransport(name);
                // Now you create a reference to the UDDI API
                security = transport.getUDDISecurityService();
                publish = transport.getUDDIPublishService();
                inquiry = transport.getUDDIInquiryService();
                juddi = transport.getJUDDIApiService();
                this.username = user;
                if (username == null || pass == null) {
                        username = clerk.getPublisher();
                        pass = clerk.getPassword();
                }
                if (username == null || pass==null) {
                   System.out.println("No credentials are available. This will probably fail spectacularly");
                } else {
                        GetAuthToken getAuthTokenRoot = new GetAuthToken();
                        getAuthTokenRoot.setUserID(username);
                        getAuthTokenRoot.setCred(pass);
                        token = security.getAuthToken(getAuthTokenRoot).getAuthInfo();
                }


                ExportTmodels();
                ExportBusiness();

                if (isJuddi) {
                        //optional juddi
                        ExportNodes();
                        ExportClerks();
                        ExportPublishers();
                }
                if (preserveOwnership) {
                        SaveProperties();
                        SaveCredFileTemplate();
                }
                clerkManager.stop();
        }
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClient

                this.preserveOwnership = preserveOwnership;
                this.mappingsfile = mappingsfile;

                // create a manager and read the config in the archive;
                // you can use your config file name
                UDDIClient clerkManager = new UDDIClient(config);
                clerkManager.start();
                UDDIClerk clerk = clerkManager.getClerk(name);
                // a ClerkManager can be a client to multiple UDDI nodes, so
                // supply the nodeName (defined in your uddi.xml.
                // The transport can be WS, inVM, RMI etc which is defined in the uddi.xml
                Transport transport = clerkManager.getTransport(name);
                // Now you create a reference to the UDDI API
                security = transport.getUDDISecurityService();
                publish = transport.getUDDIPublishService();
                inquiry = transport.getUDDIInquiryService();
                juddi = transport.getJUDDIApiService();
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClient

    initContext();
  }
 
  private void initContext() throws NamingException, ConfigurationException {
    Properties env = new Properties();
    UDDIClient client = UDDIClientContainer.getUDDIClient(clientName);
    String factoryInitial = client.getClientConfig().getHomeNode().getFactoryInitial();
    String factoryURLPkgs = client.getClientConfig().getHomeNode().getFactoryURLPkgs();
    String factoryNamingProvider = client.getClientConfig().getHomeNode().getFactoryNamingProvider();
        if (factoryInitial!=null && factoryInitial!="") env.setProperty(Property.UDDI_PROXY_FACTORY_INITIAL, factoryInitial);
        if (factoryURLPkgs!=null && factoryURLPkgs!="") env.setProperty(Property.UDDI_PROXY_FACTORY_URL_PKS, factoryURLPkgs);
        if (factoryNamingProvider!=null && factoryNamingProvider!="") env.setProperty(Property.UDDI_PROXY_PROVIDER_URL, factoryNamingProvider);
      logger.debug("Initial Context using env=" + env.toString());
      context = new InitialContext(env);
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClient

  public UDDIInquiryPortType getUDDIInquiryService(String endpointURL) throws TransportException {
    if (inquiryService==null) {
      try {
        if (endpointURL==null) {
          UDDIClient client = UDDIClientContainer.getUDDIClient(clientName);
          endpointURL = client.getClientConfig().getUDDINode(nodeName).getInquiryUrl();
        }
        URI endpointURI = new URI(endpointURL);
          String service    = endpointURI.getPath();
          logger.debug("Looking up service=" + service);
          Object requestHandler = context.lookup(service);
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClient

 
  public UDDISecurityPortType getUDDISecurityService(String endpointURL) throws TransportException {
    if (securityService==null) {
      try {
        if (endpointURL==null) {
          UDDIClient client = UDDIClientContainer.getUDDIClient(clientName);
          endpointURL = client.getClientConfig().getUDDINode(nodeName).getSecurityUrl();
        }
        URI endpointURI = new URI(endpointURL);
          String service    = endpointURI.getPath();
          logger.debug("Looking up service=" + service);
          Object requestHandler = context.lookup(service);
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClient

 
  public UDDIPublicationPortType getUDDIPublishService(String endpointURL) throws TransportException {
    if (publishService==null) {
      try {
        if (endpointURL==null) {
          UDDIClient client = UDDIClientContainer.getUDDIClient(clientName);
          endpointURL = client.getClientConfig().getUDDINode(nodeName).getPublishUrl();
        }
        URI endpointURI = new URI(endpointURL);
          String service    = endpointURI.getPath();
          logger.debug("Looking up service=" + service);
          Object requestHandler = context.lookup(service);
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClient

 
  public UDDISubscriptionPortType getUDDISubscriptionService(String endpointURL) throws TransportException {
    if (subscriptionService==null) {
      try {
        if (endpointURL==null) {
          UDDIClient client = UDDIClientContainer.getUDDIClient(clientName);
          endpointURL = client.getClientConfig().getUDDINode(nodeName).getSubscriptionUrl();
        }
        URI endpointURI = new URI(endpointURL);
          String service    = endpointURI.getPath();
          logger.debug("Looking up service=" + service);
          Object requestHandler = context.lookup(service);
View Full Code Here

Examples of org.apache.juddi.v3.client.config.UDDIClient

 
  public UDDISubscriptionListenerPortType getUDDISubscriptionListenerService(String endpointURL) throws TransportException {
    if (subscriptionListenerService==null) {
      try {
        if (endpointURL==null) {
          UDDIClient client = UDDIClientContainer.getUDDIClient(clientName);
          endpointURL = client.getClientConfig().getUDDINode(nodeName).getSubscriptionListenerUrl();
        }
        URI endpointURI = new URI(endpointURL);
          String service    = endpointURI.getPath();
          logger.debug("Looking up service=" + service);
          Object requestHandler = context.lookup(service);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.