Author: ffang
Date: Wed Jun 11 22:57:57 2008
New Revision: 666964
URL: http://svn.apache.org/viewvc?rev=666964&view=rev
Log:
[SM-1380]maven archetype to support wsdl-first development with
servicemix-cxf-se
Added:
servicemix/smx3/trunk/archetypes/servicemix-archetypes-itests/src/test/java/org/apache/servicemix/tooling/CxfSEWsdlFirstServiceUnitTest.java
(with props)
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/pom.xml
(with props)
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/META-INF/
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/META-INF/maven/
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/META-INF/maven/archetype.xml
(with props)
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/pom.xml
(with props)
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/java/
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/java/org/
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/java/org/apache/
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/java/org/apache/servicemix/
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/java/org/apache/servicemix/samples/
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/java/org/apache/servicemix/samples/wsdl_first/
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/java/org/apache/servicemix/samples/wsdl_first/PersonImpl.java
(with props)
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/resources/
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/resources/person.wsdl
(with props)
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml
(with props)
Modified:
servicemix/smx3/trunk/archetypes/pom.xml
servicemix/smx3/trunk/archetypes/servicemix-archetypes-itests/pom.xml
servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/smx-arch
servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/smx-arch.bat
Modified: servicemix/smx3/trunk/archetypes/pom.xml
URL:
http://svn.apache.org/viewvc/servicemix/smx3/trunk/archetypes/pom.xml?rev=666964&r1=666963&r2=666964&view=diff
==============================================================================
--- servicemix/smx3/trunk/archetypes/pom.xml (original)
+++ servicemix/smx3/trunk/archetypes/pom.xml Wed Jun 11 22:57:57 2008
@@ -60,6 +60,7 @@
<module>servicemix-drools-service-unit</module>
<module>servicemix-cxf-bc-service-unit</module>
<module>servicemix-cxf-se-service-unit</module>
+ <module>servicemix-cxf-se-wsdl-first-service-unit</module>
<module>servicemix-osworkflow-service-unit</module>
<module>servicemix-mail-service-unit</module>
<module>servicemix-archetype-catalog</module>
@@ -93,6 +94,7 @@
<servicemix-version>${servicemix-version}</servicemix-version>
<xbean-version>${xbean-version}</xbean-version>
<camel-version>${camel-version}</camel-version>
+
<cxf-version>${cxf-version}</cxf-version>
<xfire-version>${xfire-version}</xfire-version>
<activemq-version>${activemq-version}</activemq-version>
<repositories><
+public class PersonImpl implements Person {
+
+ public void getPerson(Holder<String> personId, Holder<String> ssn,
Holder<String> name)
+ throws UnknownPersonFault
+ {
+ if (personId.value == null || personId.value.length() == 0) {
+ org.apache.servicemix.samples.wsdl_first.types.UnknownPersonFault
fault = new org.apache.servicemix.samples.wsdl_first.types.UnknownPersonFault();
+ fault.setPersonId(personId.value);
+ throw new UnknownPersonFault(null, fault);
+ }
+ name.value = "Guillaume";
+ ssn.value = "000-000-0000";
+ }
+
+}
Propchange:
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/java/org/apache/servicemix/samples/wsdl_first/PersonImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/java/org/apache/servicemix/samples/wsdl_first/PersonImpl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/resources/person.wsdl
URL:
http://svn.apache.org/viewvc/servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/resources/person.wsdl?rev=666964&view=auto
==============================================================================
---
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/resources/person.wsdl
(added)
+++
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/resources/person.wsdl
Wed Jun 11 22:57:57 2008
@@ -0,0 +1,98 @@
+<?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.
+
+-->
+<!-- $Rev$ $Date$ -->
+<wsdl:definitions name="wsdl-first"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns:tns="http://servicemix.apache.org/samples/wsdl-first"
+ xmlns:typens="http://servicemix.apache.org/samples/wsdl-first/types"
+ targetNamespace="http://servicemix.apache.org/samples/wsdl-first">
+
+ <wsdl:types>
+ <xsd:schema
targetNamespace="http://servicemix.apache.org/samples/wsdl-first/types"
+ elementFormDefault="qualified">
+ <xsd:element name="GetPerson">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="personId"
type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="GetPersonResponse">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="personId"
type="xsd:string"/>
+ <xsd:element name="ssn"
type="xsd:string"/>
+ <xsd:element name="name"
type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="UnknownPersonFault">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="personId"
type="xsd:string"/>
+ </xsd:sequence>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ </wsdl:types>
+
+ <wsdl:message name="GetPersonRequest">
+ <wsdl:part name="payload" element="typens:GetPerson"/>
+ </wsdl:message>
+ <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>
+
+ <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:operation>
+ </wsdl:portType>
+
+ <wsdl:binding name="PersonSOAPBinding" type="tns:Person">
+ <soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
+ <wsdl:operation name="GetPerson">
+ <wsdl:input>
+ <soap:body use="literal" />
+ </wsdl:input>
+ <wsdl:output>
+ <soap:body use="literal" />
+ </wsdl:output>
+ <wsdl:fault name="UnknownPerson">
+ <soap:fault use="literal" name="UnknownPerson"
/>
+ </wsdl:fault>
+ </wsdl:operation>
+ </wsdl:binding>
+
+ <wsdl:service name="PersonService">
+ <wsdl:port binding="tns:PersonSOAPBinding" name="soap">
+ <soap:address location="http://localhost:8092/PersonService/" />
+ </wsdl:port>
+ </wsdl:service>
+
+</wsdl:definitions>
Propchange:
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/resources/person.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/resources/person.wsdl
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/resources/person.wsdl
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added:
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml
URL:
http://svn.apache.org/viewvc/servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml?rev=666964&view=auto
==============================================================================
---
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml
(added)
+++
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml
Wed Jun 11 22:57:57 2008
@@ -0,0 +1,32 @@
+<?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:cxfse="http://servicemix.apache.org/cxfse/1.0"
+ xmlns="http://www.springframework.org/schema/beans"
+ xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://servicemix.apache.org/cxfse/1.0
http://servicemix.apache.org/schema/[EMAIL PROTECTED]
+ http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
+
+ <cxfse:endpoint>
+ <cxfse:pojo>
+ <bean class="org.apache.servicemix.samples.wsdl_first.PersonImpl" />
+ </cxfse:pojo>
+ </cxfse:endpoint>
+
+</beans>
Propchange:
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
servicemix/smx3/trunk/archetypes/servicemix-cxf-se-wsdl-first-service-unit/src/main/resources/archetype-resources/src/main/resources/xbean.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified:
servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/smx-arch
URL:
http://svn.apache.org/viewvc/servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/smx-arch?rev=666964&r1=666963&r2=666964&view=diff
==============================================================================
---
servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/smx-arch
(original)
+++
servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/smx-arch
Wed Jun 11 22:57:57 2008
@@ -80,7 +80,7 @@
echo " jsr181-annotated, jsr181-wsdl-first, mail,"
echo " saxon-xquery, saxon-xslt, osworkflow,"
echo " eip, lwcontainer, bean, ode, camel"
- echo " cxf-se, cxf-bc"
+ echo " cxf-se, cxf-se-wsdl-first, cxf-bc"
echo "Optional arguments:"
echo " -DgroupId=xxxx"
echo " -DartifactId=xxxx"
Modified:
servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/smx-arch.bat
URL:
http://svn.apache.org/viewvc/servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/smx-arch.bat?rev=666964&r1=666963&r2=666964&view=diff
==============================================================================
---
servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/smx-arch.bat
(original)
+++
servicemix/smx3/trunk/distributions/apache-servicemix/src/main/release/bin/smx-arch.bat
Wed Jun 11 22:57:57 2008
@@ -51,7 +51,7 @@
echo jsr181-annotated, jsr181-wsdl-first, mail,
echo saxon-xquery, saxon-xslt, osworkflow,
echo eip, lwcontainer, bean, ode, camel
-echo cxf-se, cxf-bc
+echo cxf-se, cxf-se-wsdl-first, cxf-bc
echo Optional arguments:
echo -DgroupId=xxxx
echo -DartifactId=xxxx