Author: kstam
Date: Wed May 8 20:36:56 2013
New Revision: 1480443
URL: http://svn.apache.org/r1480443
Log:
JUDDI-514 improving support for WSDL2UDDI adding deployment lifecycle example
Added:
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/HelloWorld.java
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/HelloWorldImpl.java
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/META-INF/
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/beans.xml
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/lib/
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/web.xml
Removed:
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/wsdl2uddi/
Modified:
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/ (props changed)
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/pom.xml
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/resources/META-INF/wsdl2uddi-uddi.xml
Propchange: juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/
------------------------------------------------------------------------------
--- svn:ignore (added)
+++ svn:ignore Wed May 8 20:36:56 2013
@@ -0,0 +1,3 @@
+.settings
+.classpath
+.project
Modified: juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/pom.xml
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/pom.xml?rev=1480443&r1=1480442&r2=1480443&view=diff
==============================================================================
--- juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/pom.xml (original)
+++ juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/pom.xml Wed May 8 20:36:56
2013
@@ -10,18 +10,87 @@
<name>jUDDI Example WSDL2UDDI Deployment Lifecycle</name>
<description>Demonstrates the steps taken to publish a webservice using the
WSDL file</description>
- <dependencies>
- <dependency>
- <groupId>org.apache.juddi</groupId>
- <artifactId>uddi-ws</artifactId>
- <version>3.1.5-SNAPSHOT</version>
- </dependency>
- <dependency>
- <groupId>org.apache.juddi</groupId>
- <artifactId>juddi-client</artifactId>
- <version>3.1.5-SNAPSHOT</version>
- </dependency>
- </dependencies>
+ <properties>
+ <cxf.version>2.3.1</cxf.version>
+ </properties>
+ <dependencies>
+ <dependency>
+ <artifactId>juddi-client</artifactId>
+ <groupId>org.apache.juddi</groupId>
+ <version>${project.parent.version}</version>
+ </dependency>
+ <dependency>
+ <artifactId>uddi-ws</artifactId>
+ <groupId>org.apache.juddi</groupId>
+ <version>${project.parent.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>javax.servlet</groupId>
+ <artifactId>servlet-api</artifactId>
+ <version>2.5</version>
+ <scope>provided</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-frontend-jaxws</artifactId>
+ <version>${cxf.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-rt-transports-http</artifactId>
+ <version>${cxf.version}</version>
+ <exclusions>
+ <exclusion>
+ <groupId>cglib</groupId>
+ <artifactId>cglib</artifactId>
+ </exclusion>
+ </exclusions>
+ </dependency>
+ <dependency>
+ <groupId>cglib</groupId>
+ <artifactId>cglib-nodep</artifactId>
+ <version>2.1_3</version>
+ </dependency>
+ </dependencies>
+ <build>
+ <finalName>wsdl2uddi</finalName>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-source-plugin</artifactId>
+ <configuration>
+ <excludes>
+ <exclude>*.xml</exclude>
+ </excludes>
+ </configuration>
+ <executions>
+ <execution>
+ <goals>
+ <goal>jar</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <skip>false</skip>
+ <includes>
+ <include>**/*Test.java</include>
+ </includes>
+ </configuration>
+ </plugin>
+ <!-- examples are not very useful from a maven repo, so don't put
it there -->
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-deploy-plugin</artifactId>
+ <configuration>
+ <skip>true</skip>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
<profiles>
<profile>
@@ -42,7 +111,7 @@
</build>
</profile>
<profile>
- <id>publish</id>
+ <id>setup</id>
<build>
<plugins>
<plugin>
@@ -56,7 +125,7 @@
<goal>java</goal>
</goals>
<configuration>
-
<mainClass>org.apache.juddi.example.wsdl2uddi.Publish</mainClass>
+
<mainClass>org.apache.juddi.example.wsdl2uddi.Setup</mainClass>
</configuration>
</execution>
</executions>
@@ -87,29 +156,7 @@
</plugins>
</build>
</profile>
- <profile>
- <id>delete</id>
- <build>
- <plugins>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>exec-maven-plugin</artifactId>
- <version>1.1.1</version>
- <executions>
- <execution>
- <phase>test</phase>
- <goals>
- <goal>java</goal>
- </goals>
- <configuration>
-
<mainClass>org.apache.juddi.example.wsdl2uddi.Delete</mainClass>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
</profiles>
+ <packaging>war</packaging>
</project>
Added:
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/HelloWorld.java
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/HelloWorld.java?rev=1480443&view=auto
==============================================================================
---
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/HelloWorld.java
(added)
+++
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/HelloWorld.java
Wed May 8 20:36:56 2013
@@ -0,0 +1,27 @@
+/*
+ * Copyright 2001-2010 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.example;
+
+import javax.jws.WebParam;
+import javax.jws.WebService;
+
+@WebService
+public interface HelloWorld {
+
+ String sayHi(@WebParam(name="text") String text);
+
+}
Added:
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/HelloWorldImpl.java
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/HelloWorldImpl.java?rev=1480443&view=auto
==============================================================================
---
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/HelloWorldImpl.java
(added)
+++
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/java/org/apache/juddi/example/HelloWorldImpl.java
Wed May 8 20:36:56 2013
@@ -0,0 +1,35 @@
+/*
+ * Copyright 2001-2010 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.example;
+
+import javax.jws.WebService;
+
+import org.apache.juddi.v3.annotations.UDDIService;
+import org.apache.juddi.v3.annotations.UDDIServiceBinding;
+
+@WebService(
+ endpointInterface = "org.apache.juddi.example.HelloWorld",
+ serviceName = "HelloWorld")
+
+public class HelloWorldImpl implements HelloWorld {
+
+ public String sayHi(String text) {
+ System.out.println("sayHi called");
+ return "Hello " + text;
+ }
+
+}
Modified:
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/resources/META-INF/wsdl2uddi-uddi.xml
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/resources/META-INF/wsdl2uddi-uddi.xml?rev=1480443&r1=1480442&r2=1480443&view=diff
==============================================================================
---
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/resources/META-INF/wsdl2uddi-uddi.xml
(original)
+++
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/resources/META-INF/wsdl2uddi-uddi.xml
Wed May 8 20:36:56 2013
@@ -12,18 +12,17 @@
<property name="serverPort" value="8080"/>
</properties>
<description>Main jUDDI node</description>
- <!-- JAX-WS Transport -->
-
<proxyTransport>org.apache.juddi.v3.client.transport.JAXWSTransport</proxyTransport>
-
<custodyTransferUrl>http://${serverName}:${serverPort}/juddiv3/services/custody-transfer</custodyTransferUrl>
-
<inquiryUrl>http://${serverName}:${serverPort}/juddiv3/services/inquiry</inquiryUrl>
-
<publishUrl>http://${serverName}:${serverPort}/juddiv3/services/publish</publishUrl>
-
<securityUrl>http://${serverName}:${serverPort}/juddiv3/services/security</securityUrl>
-
<subscriptionUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription</subscriptionUrl>
-
<subscriptionListenerUrl>http://${serverName}:${serverPort}/juddiv3/services/subscription-listener</subscriptionListenerUrl>
-
<juddiApiUrl>http://${serverName}:${serverPort}/juddiv3/services/juddi-api</juddiApiUrl>
+
<proxyTransport>org.apache.juddi.v3.client.transport.InVMTransport</proxyTransport>
+
<custodyTransferUrl>org.apache.juddi.api.impl.UDDICustodyTransferImpl</custodyTransferUrl>
+
<inquiryUrl>org.apache.juddi.api.impl.UDDIInquiryImpl</inquiryUrl>
+
<publishUrl>org.apache.juddi.api.impl.UDDIPublicationImpl</publishUrl>
+
<securityUrl>org.apache.juddi.api.impl.UDDISecurityImpl</securityUrl>
+
<subscriptionUrl>org.apache.juddi.api.impl.UDDISubscriptionImpl</subscriptionUrl>
+
<subscriptionListenerUrl>org.apache.juddi.api.impl.UDDISubscriptionListenerImpl</subscriptionListenerUrl>
+
<juddiApiUrl>org.apache.juddi.api.impl.JUDDIApiImpl</juddiApiUrl>
</node>
</nodes>
- <clerks registerOnStartup="false">
+ <clerks registerOnStartup="true">
<clerk name="joe" node="default" publisher="joepublisher"
password="joepublisher">
<wsdl
businessKey="uddi:uddi.joepublisher.com:business-for-wsdl">wsdl/helloworld.wsdl</wsdl>
</clerk>
Added:
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/beans.xml
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/beans.xml?rev=1480443&view=auto
==============================================================================
---
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/beans.xml
(added)
+++
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/beans.xml
Wed May 8 20:36:56 2013
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you 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.
+-->
+<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
+
+ <import resource="classpath:META-INF/cxf/cxf.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
+ <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
+
+ <jaxws:endpoint id="helloworld"
implementor="org.apache.juddi.samples.HelloWorldImpl"
+ address="/helloworld" />
+
+</beans>
Added:
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/web.xml
URL:
http://svn.apache.org/viewvc/juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/web.xml?rev=1480443&view=auto
==============================================================================
---
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/web.xml
(added)
+++
juddi/trunk/juddi-examples/wsdl2uddi-lifecyle/src/main/webapp/WEB-INF/web.xml
Wed May 8 20:36:56 2013
@@ -0,0 +1,69 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE web-app
+ PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
+ "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you 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.
+-->
+<web-app>
+ <context-param>
+ <param-name>contextConfigLocation</param-name>
+ <param-value>WEB-INF/beans.xml</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>log4jConfigLocation</param-name>
+ <param-value>/WEB-INF/classes/log4j.properties</param-value>
+ </context-param>
+
+ <context-param>
+ <param-name>uddi.client.config.file</param-name>
+ <param-value>/META-INF/wsdl2uddi-uddi.xml</param-value>
+ </context-param>
+
+
+ <listener>
+ <listener-class>
+ org.springframework.web.context.ContextLoaderListener
+ </listener-class>
+ </listener>
+
+ <servlet>
+ <servlet-name>UDDIClerkServlet</servlet-name>
+ <display-name>Clerk Servlet</display-name>
+
<servlet-class>org.apache.juddi.v3.client.config.UDDIClerkServlet</servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet>
+ <servlet-name>CXFServlet</servlet-name>
+ <display-name>CXF Servlet</display-name>
+ <servlet-class>
+ org.apache.cxf.transport.servlet.CXFServlet
+ </servlet-class>
+ <load-on-startup>1</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>CXFServlet</servlet-name>
+ <url-pattern>/services/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]