cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cschnei...@apache.org
Subject svn commit: r885212 - in /cxf/trunk/systests/wsdl_maven: codegen/pom.xml codegen/src/ codegen/src/main/ codegen/src/main/resources/ codegen/src/main/resources/defaultBinding.xml java2ws/src/main/java/org/apache/cxf/systests/java2ws/HelloWorld.java
Date Sun, 29 Nov 2009 11:05:59 GMT
Author: cschneider
Date: Sun Nov 29 11:05:59 2009
New Revision: 885212

URL: http://svn.apache.org/viewvc?rev=885212&view=rev
Log:
CXF-2275: Maven plugins: Support reading WSDLs from Maven repository - Should be complete
now

Added:
    cxf/trunk/systests/wsdl_maven/codegen/src/
    cxf/trunk/systests/wsdl_maven/codegen/src/main/
    cxf/trunk/systests/wsdl_maven/codegen/src/main/resources/
    cxf/trunk/systests/wsdl_maven/codegen/src/main/resources/defaultBinding.xml   (with props)
Modified:
    cxf/trunk/systests/wsdl_maven/codegen/pom.xml
    cxf/trunk/systests/wsdl_maven/java2ws/src/main/java/org/apache/cxf/systests/java2ws/HelloWorld.java

Modified: cxf/trunk/systests/wsdl_maven/codegen/pom.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/wsdl_maven/codegen/pom.xml?rev=885212&r1=885211&r2=885212&view=diff
==============================================================================
--- cxf/trunk/systests/wsdl_maven/codegen/pom.xml (original)
+++ cxf/trunk/systests/wsdl_maven/codegen/pom.xml Sun Nov 29 11:05:59 2009
@@ -45,17 +45,7 @@
                     <execution>
                         <id>generate-sources</id>
                         <phase>generate-sources</phase>
-                        <configuration>
-                            <wsdlOptions>
-                                <wsdlOption>
-                                    <wsdlArtifact>
-				                        <groupId>org.apache.cxf.systests.wsdl_maven</groupId>
-				                        <artifactId>cxf-systests-java2ws</artifactId>
-				                        <version>${project.version}</version>
-			                        </wsdlArtifact>
-                                </wsdlOption>
-                            </wsdlOptions>
-                        </configuration>
+
                         <goals>
                             <goal>wsdl2java</goal>
                         </goals>
@@ -67,6 +57,12 @@
     
     <dependencies>
         <dependency>
+            <groupId>org.apache.cxf.systests.wsdl_maven</groupId>
+            <artifactId>cxf-systests-java2ws</artifactId>
+            <version>${project.version}</version>
+	  <type>wsdl</type>
+        </dependency>
+        <dependency>
             <groupId>org.apache.cxf</groupId>
             <artifactId>cxf-rt-frontend-jaxws</artifactId>
             <version>${project.version}</version>

Added: cxf/trunk/systests/wsdl_maven/codegen/src/main/resources/defaultBinding.xml
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/wsdl_maven/codegen/src/main/resources/defaultBinding.xml?rev=885212&view=auto
==============================================================================
--- cxf/trunk/systests/wsdl_maven/codegen/src/main/resources/defaultBinding.xml (added)
+++ cxf/trunk/systests/wsdl_maven/codegen/src/main/resources/defaultBinding.xml Sun Nov 29
11:05:59 2009
@@ -0,0 +1,16 @@
+<jaxws:bindings wsdlLocation=""
+          xmlns:jaxws="http://java.sun.com/xml/ns/jaxws"
+          xmlns:xs="http://www.w3.org/2001/XMLSchema"
+          xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
+          xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+  <jaxws:bindings  node="wsdl:definitions/wsdl:types/xs:schema">
+      <jxb:globalBindings>
+        <jxb:javaType name="java.util.Date" xmlType="xs:dateTime"
+                      parseMethod="org.apache.cxf.tools.common.DataTypeAdapter.parseDateTime"
+                      printMethod="org.apache.cxf.tools.common.DataTypeAdapter.printDateTime"/>
+        <jxb:javaType name="java.util.Date" xmlType="xs:date"
+                      parseMethod="org.apache.cxf.tools.common.DataTypeAdapter.parseDate"
+                      printMethod="org.apache.cxf.tools.common.DataTypeAdapter.printDate"/>
+      </jxb:globalBindings>
+  </jaxws:bindings>
+</jaxws:bindings>
\ No newline at end of file

Propchange: cxf/trunk/systests/wsdl_maven/codegen/src/main/resources/defaultBinding.xml
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Modified: cxf/trunk/systests/wsdl_maven/java2ws/src/main/java/org/apache/cxf/systests/java2ws/HelloWorld.java
URL: http://svn.apache.org/viewvc/cxf/trunk/systests/wsdl_maven/java2ws/src/main/java/org/apache/cxf/systests/java2ws/HelloWorld.java?rev=885212&r1=885211&r2=885212&view=diff
==============================================================================
--- cxf/trunk/systests/wsdl_maven/java2ws/src/main/java/org/apache/cxf/systests/java2ws/HelloWorld.java
(original)
+++ cxf/trunk/systests/wsdl_maven/java2ws/src/main/java/org/apache/cxf/systests/java2ws/HelloWorld.java
Sun Nov 29 11:05:59 2009
@@ -19,6 +19,8 @@
 
 package org.apache.cxf.systests.java2ws;
 
+import java.util.Date;
+
 import javax.jws.WebParam;
 import javax.jws.WebService;
 
@@ -28,5 +30,5 @@
 @WSDLDocumentation(value = "A simple service with only one method")
 public interface HelloWorld {
     @WSDLDocumentation(value = "Simply return the given text")
-    String sayHi(@WebParam(name = "text") String text);
+    String sayHi(@WebParam(name = "text") String text, @WebParam(name = "date") Date date);
 }



Mime
View raw message