You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2009/12/23 04:21:29 UTC

svn commit: r893389 - in /cxf/trunk/distribution/src/main/release/samples/wsdl_first: pom.xml src/main/resources/cxf-servlet.xml

Author: dkulp
Date: Wed Dec 23 03:21:27 2009
New Revision: 893389

URL: http://svn.apache.org/viewvc?rev=893389&view=rev
Log:
Update wsdl_first to support a "war" version

Modified:
    cxf/trunk/distribution/src/main/release/samples/wsdl_first/pom.xml
    cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/cxf-servlet.xml

Modified: cxf/trunk/distribution/src/main/release/samples/wsdl_first/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first/pom.xml?rev=893389&r1=893388&r2=893389&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/wsdl_first/pom.xml (original)
+++ cxf/trunk/distribution/src/main/release/samples/wsdl_first/pom.xml Wed Dec 23 03:21:27 2009
@@ -21,6 +21,7 @@
     <groupId>org.apache.cxf.samples</groupId>
     <artifactId>wsdl_first</artifactId>
     <version>1.0</version>
+    <packaging>war</packaging>
     <name>WSDL first demo using Document/Literal Style</name>
     <properties>
         <cxf.version>[2,)</cxf.version>
@@ -34,15 +35,41 @@
                 <directory>src/main/resources</directory>
             </resource>
         </resources>
+        <pluginManagement>
+            <plugins>
+                <plugin>
+                    <artifactId>maven-war-plugin</artifactId>
+                    <configuration>
+                        <webXml>../../etc/web.xml</webXml>
+                        <webResources>
+                            <resource>
+                                <directory>wsdl</directory>
+                                <targetPath>WEB-INF</targetPath>
+                                <includes>
+                                    <include>*.wsdl</include>
+                                </includes>
+                            </resource>
+                            <resource>
+                                <directory>src/main/resources</directory>
+                                <targetPath>WEB-INF</targetPath>
+                                <includes>
+                                    <include>**.*</include>
+                                </includes>
+                            </resource>
+                        </webResources>
+                    </configuration>
+                </plugin>
+                <plugin>
+                    <artifactId>maven-compiler-plugin</artifactId>
+                    <configuration>
+                        <source>1.5</source>
+                        <target>1.5</target>
+                    </configuration>
+                </plugin>
+            </plugins>
+        </pluginManagement>
         <plugins>
             <plugin>
-                <artifactId>maven-compiler-plugin</artifactId>
-                <configuration>
-                    <source>1.5</source>
-                    <target>1.5</target>
-                </configuration>
-            </plugin>
-            <plugin>
                 <groupId>org.apache.cxf</groupId>
                 <artifactId>cxf-codegen-plugin</artifactId>
                 <version>LATEST</version>

Modified: cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/cxf-servlet.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/cxf-servlet.xml?rev=893389&r1=893388&r2=893389&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/cxf-servlet.xml (original)
+++ cxf/trunk/distribution/src/main/release/samples/wsdl_first/src/main/resources/cxf-servlet.xml Wed Dec 23 03:21:27 2009
@@ -26,13 +26,13 @@
 http://cxf.apache.org/bindings/soap http://cxf.apache.org/schemas/configuration/soap.xsd
 http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
 
-    <jaxws:endpoint
-        id="hello_world"
-        implementor="demo.hw.server.GreeterImpl"
-        wsdlLocation="WEB-INF/wsdl/hello_world.wsdl"
-        address="/hello_world">
-                <jaxws:features>
- 		    <bean class="org.apache.cxf.feature.LoggingFeature"/>
-                </jaxws:features>
-    </jaxws:endpoint>
+        <jaxws:endpoint xmlns:customer="http://customerservice.example.com/"
+                id="CustomerServiceHTTP" address="/CustomerServicePort"
+                serviceName="customer:CustomerServiceService" endpointName="customer:CustomerServiceEndpoint"
+                implementor="com.example.customerservice.server.CustomerServiceImpl">
+                <!--jaxws:features>
+                        <bean class="org.apache.cxf.feature.LoggingFeature" />
+                </jaxws:features-->
+        </jaxws:endpoint>
+
 </beans>