You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@juddi.apache.org by ks...@apache.org on 2009/01/25 17:16:33 UTC
svn commit: r737529 - in /webservices/juddi/branches/v3_trunk: ./
juddi-cargo/ uddi-client/ uddi-client/src/ uddi-client/src/main/
uddi-client/src/main/java/ uddi-client/src/main/java/org/
uddi-client/src/main/java/org/uddi/ uddi-client/src/main/java/o...
Author: kstam
Date: Sun Jan 25 16:16:32 2009
New Revision: 737529
URL: http://svn.apache.org/viewvc?rev=737529&view=rev
Log:
JUDDI-171 adding generic UDDI client.
Added:
webservices/juddi/branches/v3_trunk/uddi-client/
webservices/juddi/branches/v3_trunk/uddi-client/pom.xml
webservices/juddi/branches/v3_trunk/uddi-client/src/
webservices/juddi/branches/v3_trunk/uddi-client/src/main/
webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/
webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/
webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/
webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/
webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/
webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/config/
webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/config/ClientConfig.java
webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/config/Constants.java
webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/config/Property.java
webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/transport/
webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/transport/JAXRPCTransport.java
webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/transport/Transport.java
webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/transport/TransportException.java
webservices/juddi/branches/v3_trunk/uddi-client/src/test/
webservices/juddi/branches/v3_trunk/uddi-client/src/test/java/
webservices/juddi/branches/v3_trunk/uddi-client/src/test/java/org/
webservices/juddi/branches/v3_trunk/uddi-client/src/test/java/org/apache/
webservices/juddi/branches/v3_trunk/uddi-client/src/test/java/org/apache/juddi/
webservices/juddi/branches/v3_trunk/uddi-client/src/test/java/org/apache/juddi/client/
webservices/juddi/branches/v3_trunk/uddi-client/src/test/java/org/apache/juddi/client/UDDI_010_PublisherTest.java
webservices/juddi/branches/v3_trunk/uddi-client/src/test/resources/
webservices/juddi/branches/v3_trunk/uddi-client/src/test/resources/uddi.properties
Removed:
webservices/juddi/branches/v3_trunk/juddi-cargo/
Modified:
webservices/juddi/branches/v3_trunk/pom.xml
Modified: webservices/juddi/branches/v3_trunk/pom.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/pom.xml?rev=737529&r1=737528&r2=737529&view=diff
==============================================================================
--- webservices/juddi/branches/v3_trunk/pom.xml (original)
+++ webservices/juddi/branches/v3_trunk/pom.xml Sun Jan 25 16:16:32 2009
@@ -107,8 +107,8 @@
<module>juddi-core</module>
<module>juddi-cxf</module>
<module>juddi-axis</module>
- <module>juddi-cargo</module>
<module>juddi-tomcat</module>
+ <module>uddi-client</module>
</modules>
<distributionManagement>
<repository>
@@ -161,7 +161,7 @@
</exclusions>
</dependency>
<dependency>
- <groupId>cglib</groupId>
+ <groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>2.1_3</version>
</dependency>
Added: webservices/juddi/branches/v3_trunk/uddi-client/pom.xml
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/uddi-client/pom.xml?rev=737529&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/uddi-client/pom.xml (added)
+++ webservices/juddi/branches/v3_trunk/uddi-client/pom.xml Sun Jan 25 16:16:32 2009
@@ -0,0 +1,162 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <parent>
+ <groupId>org.apache.juddi</groupId>
+ <artifactId>juddi-parent</artifactId>
+ <version>3.0.0.SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>org.apache.juddi</groupId>
+ <artifactId>uddi-client</artifactId>
+ <version>3.0.0.SNAPSHOT</version>
+ <name>UDDI Client</name>
+ <packaging>jar</packaging>
+ <repositories>
+ <repository>
+ <id>maven2-repository.dev.java.net</id>
+ <name>Java.net Maven 2 Repository</name>
+ <url>http://download.java.net/maven/2</url>
+ <layout>default</layout>
+ </repository>
+ <repository>
+ <id>maven-repository.dev.java.net</id>
+ <name>Java.net Maven 1 Repository (legacy)</name>
+ <url>http://download.java.net/maven/1</url>
+ <layout>legacy</layout>
+ </repository>
+ </repositories>
+ <pluginRepositories>
+ <pluginRepository>
+ <id>maven2-repository.dev.java.net</id>
+ <url>http://download.java.net/maven/2</url>
+ </pluginRepository>
+ <pluginRepository>
+ <id>maven-repository.dev.java.net</id>
+ <url>http://download.java.net/maven/1</url>
+ <layout>legacy</layout>
+ </pluginRepository>
+ </pluginRepositories>
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.juddi</groupId>
+ <artifactId>uddi-ws</artifactId>
+ <version>3.0.0.SNAPSHOT</version>
+ </dependency>
+ <dependency>
+ <groupId>commons-configuration</groupId>
+ <artifactId>commons-configuration</artifactId>
+ <version>1.5</version>
+ </dependency>
+ <dependency>
+ <groupId>log4j</groupId>
+ <artifactId>log4j</artifactId>
+ <version>1.2.13</version>
+ </dependency>
+ <dependency>
+ <artifactId>juddi-cxf</artifactId>
+ <groupId>org.apache.juddi</groupId>
+ <version>3.0.0.SNAPSHOT</version>
+ <type>war</type>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis</groupId>
+ <artifactId>axis</artifactId>
+ <version>1.4</version>
+ <scope>runtime</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.axis</groupId>
+ <artifactId>axis-jaxrpc</artifactId>
+ <version>1.4</version>
+ <scope>compile</scope>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.5</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.codehaus.cargo</groupId>
+ <artifactId>cargo-maven2-plugin</artifactId>
+ <configuration>
+ <wait>false</wait>
+ <container>
+ <containerId>tomcat5x</containerId>
+ <zipUrlInstaller>
+ <url>
+https://repository.atlassian.com/maven2/org/apache/tomcat/apache-tomcat/5.5.25/apache-tomcat-5.5.25.zip
+ </url>
+ <installDir>${installDir}</installDir>
+ </zipUrlInstaller>
+ </container>
+ <configuration>
+ <home>
+ ${project.build.directory}/tomcat5x/container
+ </home>
+ <deployables/>
+ <properties>
+ <cargo.servlet.port>8181</cargo.servlet.port>
+ </properties>
+ </configuration>
+ </configuration>
+ <executions>
+ <execution>
+ <id>start-container</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>start</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>stop-container</id>
+ <phase>post-integration-test</phase>
+ <goals>
+ <goal>stop</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <version>2.4</version>
+ <configuration>
+ <skip>true</skip>
+ <includes>
+ <include>**/*Test.java</include>
+ </includes>
+ </configuration>
+ <executions>
+ <execution>
+ <id>surefire-it</id>
+ <phase>integration-test</phase>
+ <goals>
+ <goal>test</goal>
+ </goals>
+ <configuration>
+ <skip>false</skip>
+ <systemProperties>
+ <property>
+ <name>cactus.contextURL</name>
+ <value>http://localhost:8181/juddi</value>
+ </property>
+ </systemProperties>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Added: webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/config/ClientConfig.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/config/ClientConfig.java?rev=737529&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/config/ClientConfig.java (added)
+++ webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/config/ClientConfig.java Sun Jan 25 16:16:32 2009
@@ -0,0 +1,107 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+package org.uddi.api_v3.client.config;
+
+import org.apache.commons.configuration.CompositeConfiguration;
+import org.apache.commons.configuration.Configuration;
+import org.apache.commons.configuration.ConfigurationException;
+import org.apache.commons.configuration.PropertiesConfiguration;
+import org.apache.commons.configuration.SystemConfiguration;
+import org.apache.commons.configuration.reloading.FileChangedReloadingStrategy;
+import org.apache.log4j.Logger;
+
+/**
+ * Handles the client configuration of the uddi-client. By default it first
+ * looks at system properties.
+ *
+ * @author <a href="mailto:kstam@apache.org">Kurt T Stam</a>
+ */
+public class ClientConfig
+{
+ private final static String UDDI_PROPERTIES = "uddi.properties";
+ private Logger log = Logger.getLogger(ClientConfig.class);
+ private Configuration config;
+ private static ClientConfig instance=null;
+
+ /**
+ * Constructor (note Singleton pattern).
+ * @throws ConfigurationException
+ */
+ private ClientConfig() throws ConfigurationException
+ {
+ loadConfiguration();
+ }
+ /**
+ * Does the actual work of reading the configuration from System
+ * Properties and/or juddi.properties file. When the juddi.properties
+ * file is updated the file will be reloaded. By default the reloadDelay is
+ * set to 1 second to prevent excessive date stamp checking.
+ */
+ private void loadConfiguration() throws ConfigurationException
+ {
+ //Properties from system properties
+ CompositeConfiguration compositeConfig = new CompositeConfiguration();
+ compositeConfig.addConfiguration(new SystemConfiguration());
+ //Properties from file
+ PropertiesConfiguration propConfig = new PropertiesConfiguration(UDDI_PROPERTIES);
+
+ long refreshDelay = propConfig.getLong(Property.UDDI_CONFIGURATION_RELOAD_DELAY, 1000l);
+ log.debug("Setting refreshDelay to " + refreshDelay);
+ FileChangedReloadingStrategy fileChangedReloadingStrategy = new FileChangedReloadingStrategy();
+ fileChangedReloadingStrategy.setRefreshDelay(refreshDelay);
+ propConfig.setReloadingStrategy(fileChangedReloadingStrategy);
+ compositeConfig.addConfiguration(propConfig);
+
+ //Making the new configuration globally accessible.
+ config = compositeConfig;
+ }
+
+
+
+
+ /**
+ * Obtains the reference to the Singleton instance.
+ *
+ * @return the APplicationConfuration Singleton Instance.
+ * @throws ConfigurationException
+ */
+ private static ClientConfig getInstance() throws ConfigurationException
+ {
+ if (instance==null) {
+ instance = new ClientConfig();
+ }
+ return instance;
+ }
+ /**
+ * Hook to receive configuration reload events from an external application.
+ *
+ * @throws ConfigurationException
+ */
+ public static void reloadConfig() throws ConfigurationException
+ {
+ getInstance().loadConfiguration();
+ }
+ /**
+ * The object from which property values can be obtained.
+ * @return the commons Configuration interface
+ * @throws ConfigurationException
+ */
+ public static Configuration getConfiguration() throws ConfigurationException
+ {
+ return getInstance().config;
+ }
+}
Added: webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/config/Constants.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/config/Constants.java?rev=737529&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/config/Constants.java (added)
+++ webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/config/Constants.java Sun Jan 25 16:16:32 2009
@@ -0,0 +1,30 @@
+/*
+ * Copyright 2001-2008 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ */
+
+package org.uddi.api_v3.client.config;
+
+/**
+ * Contains all the juddi client constants
+ *
+ * @author <a href="mailto:kstam@apache.org">Kurt T Stam</a>
+ */
+public class Constants {
+
+ public static final String API_V3_NAMESPACE = "urn:uddi-org:api_v3_portType";
+ public static final String INQUERY_SERVICE = "InquiryService";
+ public static final String PUBLISH_SERVICE = "PublishService";
+}
Added: webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/config/Property.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/config/Property.java?rev=737529&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/config/Property.java (added)
+++ webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/config/Property.java Sun Jan 25 16:16:32 2009
@@ -0,0 +1,15 @@
+package org.uddi.api_v3.client.config;
+
+public interface Property
+{
+ public final static String UDDI_CONFIGURATION_RELOAD_DELAY ="uddi.configuration.reload.delay";
+ public final static String UDDI_INQUIRY_URL ="uddi.inquery.url";
+ public final static String UDDI_SECURITY_URL ="uddi.security.url";
+ public final static String UDDI_PROXY_TRANSPORT ="uddi.proxy.transport";
+
+ public final static String UDDI_PROXY_FACTORY_INITIAL ="uddi.proxy.factory.initial";
+ public final static String UDDI_PROXY_PROVIDER_URL ="uddi.proxy.provider.url";
+ public final static String UDDI_PROXY_FACTORY_URL_PKS ="uddi.proxy.factory.url.pkg";
+
+ public final static String DEFAULT_UDDI_PROXY_TRANSPORT ="org.uddi.api_v3.client.transport.JAXRPCTransport";
+}
Added: webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/transport/JAXRPCTransport.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/transport/JAXRPCTransport.java?rev=737529&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/transport/JAXRPCTransport.java (added)
+++ webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/transport/JAXRPCTransport.java Sun Jan 25 16:16:32 2009
@@ -0,0 +1,49 @@
+package org.uddi.api_v3.client.transport;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import org.uddi.api_v3.client.config.ClientConfig;
+import org.uddi.api_v3.client.config.Property;
+import org.uddi.v3_service.UDDIInquiryPortType;
+import org.uddi.v3_service.UDDISecurityPortType;
+
+
+public class JAXRPCTransport implements Transport {
+
+ UDDIInquiryPortType inquiryService = null;
+ UDDISecurityPortType securityService = null;
+
+ public UDDIInquiryPortType getInquiryService() throws TransportException {
+
+ if (inquiryService==null) {
+ try {
+ String endpointURL = ClientConfig.getConfiguration().getString(Property.UDDI_INQUIRY_URL);
+ QName qName = new QName(Transport.API_V3_NAMESPACE, Transport.INQUIRY_SERVICE);
+ Service service = Service.create(new URL(endpointURL), qName);
+ inquiryService = (UDDIInquiryPortType) service.getPort(UDDIInquiryPortType.class);
+ } catch (Exception e) {
+ throw new TransportException(e.getMessage(), e);
+ }
+ }
+ return inquiryService;
+ }
+
+ public UDDISecurityPortType getSecurityService() throws TransportException {
+
+ if (securityService==null) {
+ try {
+ String endpointURL = ClientConfig.getConfiguration().getString(Property.UDDI_SECURITY_URL);
+ QName qName = new QName(Transport.API_V3_NAMESPACE, Transport.SECURITY_SERVICE);
+ Service service = Service.create(new URL(endpointURL), qName);
+ securityService = (UDDISecurityPortType) service.getPort(UDDISecurityPortType.class);
+ } catch (Exception e) {
+ throw new TransportException(e.getMessage(), e);
+ }
+ }
+ return securityService;
+ }
+
+}
Added: webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/transport/Transport.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/transport/Transport.java?rev=737529&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/transport/Transport.java (added)
+++ webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/transport/Transport.java Sun Jan 25 16:16:32 2009
@@ -0,0 +1,13 @@
+package org.uddi.api_v3.client.transport;
+
+import org.uddi.v3_service.UDDIInquiryPortType;
+import org.uddi.v3_service.UDDISecurityPortType;
+
+public interface Transport {
+ public final static String API_V3_NAMESPACE = "urn:uddi-org:api_v3_portType";
+ public final static String INQUIRY_SERVICE = "InquiryService";
+ public final static String SECURITY_SERVICE = "SecurityService";
+
+ UDDIInquiryPortType getInquiryService() throws TransportException;
+ UDDISecurityPortType getSecurityService() throws TransportException;
+}
Added: webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/transport/TransportException.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/transport/TransportException.java?rev=737529&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/transport/TransportException.java (added)
+++ webservices/juddi/branches/v3_trunk/uddi-client/src/main/java/org/uddi/api_v3/client/transport/TransportException.java Sun Jan 25 16:16:32 2009
@@ -0,0 +1,24 @@
+package org.uddi.api_v3.client.transport;
+
+public class TransportException extends Exception {
+
+ private static final long serialVersionUID = 1L;
+ public TransportException() {
+ super();
+ }
+
+ public TransportException(String message, Throwable cause) {
+ super(message, cause);
+ }
+
+ public TransportException(String message) {
+ super(message);
+ }
+
+ public TransportException(Throwable cause) {
+ super(cause);
+ }
+
+
+
+}
Added: webservices/juddi/branches/v3_trunk/uddi-client/src/test/java/org/apache/juddi/client/UDDI_010_PublisherTest.java
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/uddi-client/src/test/java/org/apache/juddi/client/UDDI_010_PublisherTest.java?rev=737529&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/uddi-client/src/test/java/org/apache/juddi/client/UDDI_010_PublisherTest.java (added)
+++ webservices/juddi/branches/v3_trunk/uddi-client/src/test/java/org/apache/juddi/client/UDDI_010_PublisherTest.java Sun Jan 25 16:16:32 2009
@@ -0,0 +1,61 @@
+/*
+ * Copyright 2001-2009 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.juddi.client;
+
+import org.apache.log4j.helpers.Loader;
+import org.junit.Test;
+import org.uddi.api_v3.AuthToken;
+import org.uddi.api_v3.GetAuthToken;
+import org.uddi.api_v3.client.config.ClientConfig;
+import org.uddi.api_v3.client.config.Property;
+import org.uddi.api_v3.client.transport.Transport;
+import org.uddi.v3_service.UDDIInquiryPortType;
+import org.uddi.v3_service.UDDISecurityPortType;
+
+/**
+ * @author <a href="mailto:kstam@apache.org">Kurt T Stam</a>
+ */
+public class UDDI_010_PublisherTest {
+
+ @Test
+ public void test() {
+ try {
+ String clazz = ClientConfig.getConfiguration().getString(Property.UDDI_PROXY_TRANSPORT,Property.DEFAULT_UDDI_PROXY_TRANSPORT);
+ Class<?> transportClass = Loader.loadClass(clazz);
+ if (transportClass!=null) {
+ Transport transport = (Transport) transportClass.newInstance();
+
+ UDDISecurityPortType securityService = transport.getSecurityService();
+ GetAuthToken getAuthToken = new GetAuthToken();
+ getAuthToken.setUserID("root");
+ getAuthToken.setCred("");
+ AuthToken authToken = securityService.getAuthToken(getAuthToken);
+ System.out.println(authToken.getAuthInfo());
+
+ //UDDIInquiryPortType inquiryService = transport.getInquiryService();
+
+ //inquiryService.findTModel(body);
+ } else {
+
+ }
+
+ } catch (Exception e) {
+
+ e.printStackTrace();
+
+ }
+ }
+
+}
Added: webservices/juddi/branches/v3_trunk/uddi-client/src/test/resources/uddi.properties
URL: http://svn.apache.org/viewvc/webservices/juddi/branches/v3_trunk/uddi-client/src/test/resources/uddi.properties?rev=737529&view=auto
==============================================================================
--- webservices/juddi/branches/v3_trunk/uddi-client/src/test/resources/uddi.properties (added)
+++ webservices/juddi/branches/v3_trunk/uddi-client/src/test/resources/uddi.properties Sun Jan 25 16:16:32 2009
@@ -0,0 +1,11 @@
+uddi.custody.transfer.url =http://localhost:8080/juddi/services/custody-transfer
+uddi.inquiry.url =http://localhost:8080/juddi/services/inquiry
+uddi.publish.url =http://localhost:8080/juddi/services/publish
+uddi.security.url =http://localhost:8080/juddi/services/security
+uddi.subscription.url =http://localhost:8080/juddi/services/subscription
+
+uddi.proxy.transport =org.uddi.api_v3.client.transport.JAXRPCTransport
+#only used by RMITransport
+uddi.proxy.factory.initial =org.jnp.interfaces.NamingContextFactory
+uddi.proxy.provider.url =jnp://localhost:1099
+uddi.proxy.factory.url.pkg =org.jboss.naming
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org