You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2006/06/19 22:44:53 UTC

svn commit: r415411 - in /incubator/servicemix/trunk/samples/wsdl-first/jsr181-su: pom.xml src/main/resources/person.wsdl

Author: gnodet
Date: Mon Jun 19 13:44:53 2006
New Revision: 415411

URL: http://svn.apache.org/viewvc?rev=415411&view=rev
Log:
Use xfire to generate wsdl-first sample

Modified:
    incubator/servicemix/trunk/samples/wsdl-first/jsr181-su/pom.xml
    incubator/servicemix/trunk/samples/wsdl-first/jsr181-su/src/main/resources/person.wsdl

Modified: incubator/servicemix/trunk/samples/wsdl-first/jsr181-su/pom.xml
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/wsdl-first/jsr181-su/pom.xml?rev=415411&r1=415410&r2=415411&view=diff
==============================================================================
--- incubator/servicemix/trunk/samples/wsdl-first/jsr181-su/pom.xml (original)
+++ incubator/servicemix/trunk/samples/wsdl-first/jsr181-su/pom.xml Mon Jun 19 13:44:53 2006
@@ -36,14 +36,12 @@
 
     <dependencies>
         <dependency>
-            <groupId>com.sun.xml</groupId>
-            <artifactId>jaxws-rt</artifactId>
-            <exclusions>
-                <exclusion>
-                    <groupId>javax.jws</groupId>
-                    <artifactId>jsr181-api</artifactId>
-                </exclusion>
-            </exclusions>
+            <groupId>javax.xml</groupId>
+            <artifactId>jaxws-api</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>com.sun.xml.bind</groupId>
+            <artifactId>jaxb-impl</artifactId>
         </dependency>
         <dependency>
             <groupId>xfire</groupId>
@@ -61,6 +59,46 @@
                 </configuration>
             </plugin>
             <plugin>
+                <artifactId>maven-antrun-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <phase>generate-sources</phase>
+                        <configuration>
+                            <tasks>
+                                <taskdef classname="org.codehaus.xfire.gen.WsGenTask" name="wsgen">
+                                    <classpath>
+                                        <pathelement path="${basedir}/target/classes" />
+                                        <path refid="maven.test.classpath" />
+                                    </classpath>
+                                </taskdef>
+                                <wsgen 
+                                  wsdl="${basedir}/src/main/resources/person.wsdl"
+                                  outputDirectory="${basedir}/target/jaxws" 
+                                  profile="org.codehaus.xfire.jaxws.gen.JAXWSProfile"
+                                  explicitAnnotation="true" />
+                            </tasks>
+                            <sourceRoot>${basedir}/target/jaxws</sourceRoot>
+                        </configuration>
+                        <goals>
+                            <goal>run</goal>
+                        </goals>
+                    </execution>
+                </executions>
+                <dependencies>
+                    <dependency>
+                        <groupId>org.codehaus.xfire</groupId>
+                        <artifactId>xfire-generator</artifactId>
+                        <version>1.1.1</version>
+                    </dependency>
+                    <dependency>
+                        <groupId>org.codehaus.xfire</groupId>
+                        <artifactId>xfire-jaxws</artifactId>
+                        <version>1.1.1</version>
+                    </dependency>
+                </dependencies>
+            </plugin>
+      <!--
+            <plugin>
                 <groupId>org.codehaus.mojo</groupId>
                 <artifactId>jaxws-maven-plugin</artifactId>
                 <version>1.0-SNAPSHOT</version>
@@ -76,6 +114,7 @@
                     <wsdlFiles>person.wsdl</wsdlFiles>
                 </configuration>
             </plugin>
+        -->
         </plugins>
     </build>
 </project>

Modified: incubator/servicemix/trunk/samples/wsdl-first/jsr181-su/src/main/resources/person.wsdl
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/samples/wsdl-first/jsr181-su/src/main/resources/person.wsdl?rev=415411&r1=415410&r2=415411&view=diff
==============================================================================
--- incubator/servicemix/trunk/samples/wsdl-first/jsr181-su/src/main/resources/person.wsdl (original)
+++ incubator/servicemix/trunk/samples/wsdl-first/jsr181-su/src/main/resources/person.wsdl Mon Jun 19 13:44:53 2006
@@ -10,14 +10,14 @@
 
 	<wsdl:types>
 		<xsd:schema targetNamespace="http://servicemix.apache.org/samples/wsdl-first/types">
-			<xsd:element name="getPersonRequest">
+			<xsd:element name="GetPersonRequest">
 			    <xsd:complexType>
 					<xsd:sequence>
 						<xsd:element name="personId" type="xsd:string"/>
 					</xsd:sequence>
 				</xsd:complexType>
 			</xsd:element>
-			<xsd:element name="getPersonResponse">
+			<xsd:element name="GetPersonResponse">
 			    <xsd:complexType>
 					<xsd:sequence>
 					    <xsd:element name="personId" type="xsd:string"/>
@@ -26,7 +26,7 @@
 					</xsd:sequence>
 				</xsd:complexType>
 			</xsd:element>
-			<xsd:element name="unknownPersonFault">
+			<xsd:element name="UnknownPersonFault">
 			    <xsd:complexType>
 					<xsd:sequence>
 					    <xsd:element name="personId" type="xsd:string"/>
@@ -34,26 +34,23 @@
 				</xsd:complexType>
 			</xsd:element>
 		</xsd:schema>
-        <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
-        targetNamespace="http://servicemix.apache.org/samples/wsdl-first">
-        <xsd:element name="getPersonRequest" type="xsd:string"></xsd:element></xsd:schema>
-    </wsdl:types>
+  </wsdl:types>
 	
-	<wsdl:message name="getPersonRequest">
-		<wsdl:part name="payload" element="typens:getPersonRequest"/>
+	<wsdl:message name="GetPersonRequest">
+		<wsdl:part name="payload" element="typens:GetPersonRequest"/>
 	</wsdl:message>
-	<wsdl:message name="getPersonResponse">
-		<wsdl:part name="payload" element="typens:getPersonResponse"/>
+	<wsdl:message name="GetPersonResponse">
+		<wsdl:part name="payload" element="typens:GetPersonResponse"/>
 	</wsdl:message>
-	<wsdl:message name="unknownPersonFault">
-		<wsdl:part name="payload" element="typens:unknownPersonFault"/>
+	<wsdl:message name="UnknownPersonFault">
+		<wsdl:part name="payload" element="typens:UnknownPersonFault"/>
 	</wsdl:message>
 
     <wsdl:portType name="Person">
 		<wsdl:operation name="getPerson">
-			<wsdl:input message="tns:getPersonRequest"/>
-			<wsdl:output message="tns:getPersonResponse"/>
-			<wsdl:fault name="UnknownPerson" message="tns:unknownPersonFault"/>
+			<wsdl:input message="tns:GetPersonRequest"/>
+			<wsdl:output message="tns:GetPersonResponse"/>
+			<wsdl:fault name="UnknownPerson" message="tns:UnknownPersonFault"/>
 		</wsdl:operation>
 	</wsdl:portType>