Author: ningjiang
Date: Wed Jul 9 02:34:37 2008
New Revision: 675125
URL: http://svn.apache.org/viewvc?rev=675125&view=rev
Log:
CAMEL-686 Add an integration test case whick is taken from Eduard's sample
Added:
activemq/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/customerrelations/
activemq/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/customerrelations/CustomerServiceV1Impl.java
(with props)
activemq/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/customerrelations/CustomerServicesTest.java
(with props)
activemq/camel/trunk/tests/camel-itest/src/test/resources/commons-logging.properties
(with props)
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/client-applicationContext.xml
(with props)
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/jms-applicationContext.xml
(with props)
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/server-applicationContext.xml
(with props)
activemq/camel/trunk/tests/camel-itest/src/test/resources/wsdl/
activemq/camel/trunk/tests/camel-itest/src/test/resources/wsdl/CustomerService-1.0.0.wsdl
(with props)
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Address.xsd
(with props)
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Customer.xsd
(with props)
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Gender.xsd
(with props)
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Person.xsd
(with props)
Removed:
activemq/camel/trunk/tests/camel-itest/src/main/
Modified:
activemq/camel/trunk/tests/camel-itest/pom.xml
Modified: activemq/camel/trunk/tests/camel-itest/pom.xml
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/tests/camel-itest/pom.xml?rev=675125&r1=675124&r2=675125&view=diff
==============================================================================
--- activemq/camel/trunk/tests/camel-itest/pom.xml (original)
+++ activemq/camel/trunk/tests/camel-itest/pom.xml Wed Jul 9 02:34:37 2008
@@ -37,6 +37,14 @@
<groupId>org.apache.camel</groupId>
<artifactId>camel-jms</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-spring</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.camel</groupId>
+ <artifactId>camel-cxf</artifactId>
+ </dependency>
<!-- testing -->
<dependency>
@@ -86,6 +94,7 @@
<build>
+
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
@@ -93,7 +102,28 @@
<forkMode>pertest</forkMode>
</configuration>
</plugin>
-
+ <plugin>
+ <groupId>org.apache.cxf</groupId>
+ <artifactId>cxf-codegen-plugin</artifactId>
+ <version>2.1.1</version>
+ <executions>
+ <execution>
+ <id>generate-sources</id>
+ <phase>generate-sources</phase>
+ <configuration>
+ <wsdlOptions>
+ <wsdlOption>
+
<outputDir>target/generated/src/main/java</outputDir>
+
<wsdl>src/test/resources/wsdl/CustomerService-1.0.0.wsdl</wsdl>
+ </wsdlOption>
+ </wsdlOptions>
+ </configuration>
+ <goals>
+ <goal>wsdl2java</goal>
+ </goals>
+ </execution>
+ </executions>
+ </plugin>
</plugins>
</build>
Added:
activemq/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/customerrelations/CustomerServiceV1Impl.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/customerrelations/CustomerServiceV1Impl.java?rev=675125&view=auto
==============================================================================
---
activemq/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/customerrelations/CustomerServiceV1Impl.java
(added)
+++
activemq/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/customerrelations/CustomerServiceV1Impl.java
Wed Jul 9 02:34:37 2008
@@ -0,0 +1,42 @@
+/**
+ * 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.
+ */
+package org.apache.camel.itest.customerrelations;
+
+
+public class CustomerServiceV1Impl implements CustomerServiceV1 {
+ public Customer getCustomer(String customerNumber) {
+ Customer result = null;
+ if ("12345".equals(customerNumber)) {
+ Person maxMueller = new Person();
+ maxMueller.setFirstname("Max");
+ maxMueller.setLastname("Müller");
+ maxMueller.setGender(Gender.MALE);
+ Address maxMuellerAddress = new Address();
+ maxMuellerAddress.setLine1("Mussterstr. 10");
+ maxMuellerAddress.setLine2("");
+ maxMuellerAddress.setPostalCode("12345");
+ maxMuellerAddress.setCity("Musterhausen");
+ Customer maxMuellerCustomer = new Customer();
+ maxMuellerCustomer.setPerson(maxMueller);
+ maxMuellerCustomer.setAddress(maxMuellerAddress);
+ result = maxMuellerCustomer;
+ } else {
+ throw new RuntimeException("No such customer");
+ }
+ return result;
+ }
+}
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/customerrelations/CustomerServiceV1Impl.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/customerrelations/CustomerServiceV1Impl.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
activemq/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/customerrelations/CustomerServicesTest.java
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/customerrelations/CustomerServicesTest.java?rev=675125&view=auto
==============================================================================
---
activemq/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/customerrelations/CustomerServicesTest.java
(added)
+++
activemq/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/customerrelations/CustomerServicesTest.java
Wed Jul 9 02:34:37 2008
@@ -0,0 +1,48 @@
+/**
+ * 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.
+ */
+package org.apache.camel.itest.customerrelations;
+
+import junit.framework.TestCase;
+import org.springframework.context.support.ClassPathXmlApplicationContext;
+
+public class CustomerServicesTest extends TestCase {
+
+ public void testCustomerService() throws Exception {
+ ClassPathXmlApplicationContext serverContext = null;
+ ClassPathXmlApplicationContext clientContext = null;
+ try {
+ serverContext = new ClassPathXmlApplicationContext(
+ new String[] {"spring-config/server-applicationContext.xml"});
+ Object server =
serverContext.getBean("org.apache.camel.itest.customerrelations.CustomerServiceV1");
+ assertNotNull("We should get server here", server);
+
+ clientContext = new ClassPathXmlApplicationContext(
+ new String[] {"spring-config/client-applicationContext.xml"});
+ CustomerServiceV1 customerService = (CustomerServiceV1)
clientContext.getBean("org.apache.camel.itest.customerrelations.CustomerServiceV1");
+ Customer customer = customerService.getCustomer("12345");
+ assertNotNull("We should get Customer here", customer);
+ } finally {
+ if (clientContext != null) {
+ clientContext.destroy();
+ }
+ if (serverContext != null) {
+ serverContext.destroy();
+ }
+ }
+ }
+
+}
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/customerrelations/CustomerServicesTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/java/org/apache/camel/itest/customerrelations/CustomerServicesTest.java
------------------------------------------------------------------------------
svn:keywords = Rev Date
Added:
activemq/camel/trunk/tests/camel-itest/src/test/resources/commons-logging.properties
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/tests/camel-itest/src/test/resources/commons-logging.properties?rev=675125&view=auto
==============================================================================
---
activemq/camel/trunk/tests/camel-itest/src/test/resources/commons-logging.properties
(added)
+++
activemq/camel/trunk/tests/camel-itest/src/test/resources/commons-logging.properties
Wed Jul 9 02:34:37 2008
@@ -0,0 +1,2 @@
+#org.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger
+org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
\ No newline at end of file
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/commons-logging.properties
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/commons-logging.properties
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/commons-logging.properties
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added:
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/client-applicationContext.xml
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/client-applicationContext.xml?rev=675125&view=auto
==============================================================================
---
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/client-applicationContext.xml
(added)
+++
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/client-applicationContext.xml
Wed Jul 9 02:34:37 2008
@@ -0,0 +1,70 @@
+<!--
+ 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"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
+ http://cxf.apache.org/core
http://cxf.apache.org/schemas/core.xsd
+ http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
+ http://activemq.apache.org/camel/schema/spring
http://activemq.apache.org/camel/schema/spring/camel-spring-1.3.0.xsd
+ http://cxf.apache.org/transports/camel
http://cxf.apache.org/transports/camel.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-extension-camel.xml" />
+
+ <import
+ resource="classpath:spring-config/jms-applicationContext.xml" />
+
+ <bean
class="org.apache.camel.component.cxf.transport.CamelTransportFactory"
lazy-init="true">
+ <property name="bus" ref="cxf"/>
+ <property name="camelContext" ref="camelContext"/>
+ <property name="transportIds">
+ <list>
+ <value>http://cxf.apache.org/transports/camel</value>
+ </list>
+ </property>
+ </bean>
+
+ <client id="org.apache.camel.itest.customerrelations.CustomerServiceV1"
+ xmlns="http://cxf.apache.org/jaxws"
+ xmlns:customer="http://camel.apache.org/itest/customerrelations"
+ serviceName="customer:CustomerServiceV1"
+ endpointName="customer:CustomerServiceV1CamelPort"
+
serviceClass="org.apache.camel.itest.customerrelations.CustomerServiceV1"
+
wsdlLocation="./src/test/resources/wsdl/CustomerService-1.0.0.wsdl">
+ <features>
+ <!-- Enables logging of SOAP messages. -->
+ <logging xmlns="http://cxf.apache.org/core" />
+ </features>
+ </client>
+
+ <conduit xmlns="http://cxf.apache.org/transports/camel"
+
name="{http://camel.apache.org/itest/customerrelations}CustomerServiceV1CamelPort.camel-conduit">
+ <camelContextRef>camelContext</camelContextRef>
+ </conduit>
+
+ <camelContext id="camelContext"
+ xmlns="http://activemq.apache.org/camel/schema/spring">
+ <jmxAgent id="agent" disabled="true"/>
+ <route>
+ <from
uri="direct:org.apache.camel.itest.customerrelations.CustomerServiceV1" />
+ <to
+
uri="jms://org.apache.camel.itest.customerrelations.CustomerServiceV1" />
+ </route>
+ </camelContext>
+
+</beans>
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/client-applicationContext.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/client-applicationContext.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/client-applicationContext.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added:
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/jms-applicationContext.xml
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/jms-applicationContext.xml?rev=675125&view=auto
==============================================================================
---
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/jms-applicationContext.xml
(added)
+++
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/jms-applicationContext.xml
Wed Jul 9 02:34:37 2008
@@ -0,0 +1,32 @@
+<!--
+ 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"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
+
+ <bean id="jms"
+ class="org.apache.camel.component.jms.JmsComponent">
+ <property name="connectionFactory" ref="jmsConnectionFactory" />
+ <property name="useMessageIDAsCorrelationID" value="true" />
+ </bean>
+
+ <bean id="jmsConnectionFactory"
+ class="org.apache.activemq.ActiveMQConnectionFactory">
+ <property name="brokerURL" value="tcp://localhost:61616" />
+ </bean>
+
+</beans>
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/jms-applicationContext.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/jms-applicationContext.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/jms-applicationContext.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added:
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/server-applicationContext.xml
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/server-applicationContext.xml?rev=675125&view=auto
==============================================================================
---
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/server-applicationContext.xml
(added)
+++
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/server-applicationContext.xml
Wed Jul 9 02:34:37 2008
@@ -0,0 +1,79 @@
+<!--
+ 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:broker="http://activemq.apache.org/schema/core"
+ xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
+ http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
+ http://cxf.apache.org/core
http://cxf.apache.org/schemas/core.xsd
+ http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd
+ http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core-5.1.0.xsd
+ http://activemq.apache.org/camel/schema/spring
http://activemq.apache.org/camel/schema/spring/camel-spring-1.3.0.xsd
+ http://cxf.apache.org/transports/camel
http://cxf.apache.org/transports/camel.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-extension-camel.xml" />
+
+ <import
+ resource="classpath:spring-config/jms-applicationContext.xml" />
+
+ <broker:broker useJmx="false" persistent="false" brokerName="localhost">
+ <broker:transportConnectors>
+ <broker:transportConnector name="tcp" uri="tcp://localhost:61616"/>
+ </broker:transportConnectors>
+ </broker:broker>
+
+ <bean
class="org.apache.camel.component.cxf.transport.CamelTransportFactory"
lazy-init="true">
+ <property name="bus" ref="cxf"/>
+ <property name="camelContext" ref="camelContext"/>
+ <property name="transportIds">
+ <list>
+ <value>http://cxf.apache.org/transports/camel</value>
+ </list>
+ </property>
+ </bean>
+
+ <endpoint xmlns="http://cxf.apache.org/jaxws"
+ id="org.apache.camel.itest.customerrelations.CustomerServiceV1"
+ xmlns:customer="http://camel.apache.org/itest/customerrelations"
+ serviceName="customer:CustomerServiceV1"
+ endpointName="customer:CustomerServiceV1CamelPort"
+
address="camel://direct:org.apache.camel.itest.customerrelations.CustomerServiceV1"
+
implementor="org.apache.camel.itest.customerrelations.CustomerServiceV1Impl">
+ <features>
+ <!-- Enables logging of SOAP messages. -->
+ <logging xmlns="http://cxf.apache.org/core" />
+ </features>
+ </endpoint>
+
+ <destination xmlns="http://cxf.apache.org/transports/camel"
+
name="{http://camel.apache.org/itest/customerrelations}CustomerServiceV1CamelPort.camel-destination">
+ <camelContextRef>camelContext</camelContextRef>
+ </destination>
+
+ <camelContext id="camelContext"
+ xmlns="http://activemq.apache.org/camel/schema/spring">
+ <jmxAgent id="agent" disabled="true"/>
+ <route>
+ <from
+
uri="jms://org.apache.camel.itest.customerrelations.CustomerServiceV1" />
+ <to
+
uri="direct:org.apache.camel.itest.customerrelations.CustomerServiceV1" />
+ </route>
+ </camelContext>
+</beans>
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/server-applicationContext.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/server-applicationContext.xml
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/spring-config/server-applicationContext.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added:
activemq/camel/trunk/tests/camel-itest/src/test/resources/wsdl/CustomerService-1.0.0.wsdl
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/tests/camel-itest/src/test/resources/wsdl/CustomerService-1.0.0.wsdl?rev=675125&view=auto
==============================================================================
---
activemq/camel/trunk/tests/camel-itest/src/test/resources/wsdl/CustomerService-1.0.0.wsdl
(added)
+++
activemq/camel/trunk/tests/camel-itest/src/test/resources/wsdl/CustomerService-1.0.0.wsdl
Wed Jul 9 02:34:37 2008
@@ -0,0 +1,103 @@
+<?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.
+-->
+<wsdl:definitions name="CustomerServiceV1"
+ targetNamespace="http://camel.apache.org/itest/customerrelations"
+ xmlns:customer="http://camel.apache.org/itest/customerrelations"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
+ xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
+ <wsdl:types>
+ <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+
targetNamespace="http://camel.apache.org/itest/customerrelations"
+ xmlns="http://camel.apache.org/itest/customerrelations">
+ <xsd:include schemaLocation="../xsd/Customer.xsd" />
+ <xs:element name="getCustomerResponse"
+ type="getCustomerResponse" />
+ <xs:complexType name="getCustomerResponse">
+ <xs:sequence>
+ <xs:element name="customers"
type="Customer"
+ minOccurs="1" />
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="getCustomer"
type="getCustomerRequest" />
+ <xs:complexType name="getCustomerRequest">
+ <xs:sequence>
+ <xs:element name="customerNummber"
type="xs:token"
+ minOccurs="1" />
+ </xs:sequence>
+ </xs:complexType>
+ <xs:element name="BusinessLogicException"
+ type="BusinessLogicException" />
+ <xs:complexType name="BusinessLogicException">
+ <xs:sequence>
+ <xs:element name="message"
nillable="true"
+ type="xs:string" />
+ </xs:sequence>
+ </xs:complexType>
+ </xs:schema>
+ </wsdl:types>
+ <wsdl:message name="getCustomerResponse">
+ <wsdl:part name="parameters"
+ element="customer:getCustomerResponse">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="getCustomer">
+ <wsdl:part name="parameters" element="customer:getCustomer">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:message name="BusinessLogicException">
+ <wsdl:part name="fault"
element="customer:BusinessLogicException">
+ </wsdl:part>
+ </wsdl:message>
+ <wsdl:portType name="CustomerServiceV1">
+ <wsdl:operation name="getCustomer">
+ <wsdl:input name="getCustomer"
message="customer:getCustomer">
+ </wsdl:input>
+ <wsdl:output name="getCustomerResponse"
+ message="customer:getCustomerResponse">
+ </wsdl:output>
+ <wsdl:fault name="BusinessLogicException"
+ message="customer:BusinessLogicException">
+ </wsdl:fault>
+ </wsdl:operation>
+ </wsdl:portType>
+ <wsdl:binding name="CustomerServiceV1SoapBinding"
+ type="customer:CustomerServiceV1">
+ <soap:binding style="document"
+ transport="http://cxf.apache.org/transports/camel" />
+ <wsdl:operation name="getCustomer">
+ <soap:operation soapAction="getCustomer"
style="document" />
+ <wsdl:input name="getCustomer">
+ <soap:body use="literal" />
+ </wsdl:input>
+ <wsdl:output name="getCustomerResponse">
+ <soap:body use="literal" />
+ </wsdl:output>
+ <wsdl:fault name="BusinessLogicException">
+ <soap:fault name="BusinessLogicException"
use="literal" />
+ </wsdl:fault>
+ </wsdl:operation>
+ </wsdl:binding>
+ <wsdl:service name="CustomerServiceV1">
+ <wsdl:port name="CustomerServiceV1CamelPort"
+ binding="customer:CustomerServiceV1SoapBinding">
+ <soap:address
+
location="camel://direct:org.apache.camel.itest.customerrelations.CustomerServiceV1"
/>
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/wsdl/CustomerService-1.0.0.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/wsdl/CustomerService-1.0.0.wsdl
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/wsdl/CustomerService-1.0.0.wsdl
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Address.xsd
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Address.xsd?rev=675125&view=auto
==============================================================================
--- activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Address.xsd
(added)
+++ activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Address.xsd
Wed Jul 9 02:34:37 2008
@@ -0,0 +1,59 @@
+<?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.
+-->
+<xsd:schema targetNamespace="http://camel.apache.org/itest/customerrelations"
xmlns="http://camel.apache.org/itest/customerrelations"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <xsd:simpleType name="AddressLine">
+ <xsd:restriction base="xsd:token">
+ <xsd:minLength value="1" />
+ <xsd:maxLength value="128" />
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <xsd:simpleType name="PostalCode">
+ <xsd:restriction base="xsd:token">
+ <xsd:minLength value="1" />
+ <xsd:maxLength value="5" />
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <xsd:simpleType name="City">
+ <xsd:restriction base="xsd:token">
+ <xsd:minLength value="1" />
+ <xsd:maxLength value="128" />
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <xsd:simpleType name="Country">
+ <xsd:restriction base="xsd:token">
+ <xsd:minLength value="1" />
+ <xsd:maxLength value="128" />
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <xsd:complexType name="Address" >
+ <xsd:sequence>
+ <xsd:element name="line1" type="AddressLine" nillable="false"
minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="line2" type="AddressLine"
nillable="false" minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="postalCode" type="PostalCode" nillable="false"
minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="city" type="City" nillable="false"
minOccurs="0" maxOccurs="1"/>
+ <xsd:element name="country" type="Country"
nillable="false" minOccurs="0" maxOccurs="1"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+</xsd:schema>
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Address.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Address.xsd
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Address.xsd
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added:
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Customer.xsd
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Customer.xsd?rev=675125&view=auto
==============================================================================
--- activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Customer.xsd
(added)
+++ activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Customer.xsd
Wed Jul 9 02:34:37 2008
@@ -0,0 +1,38 @@
+<?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.
+-->
+<xsd:schema targetNamespace="http://camel.apache.org/itest/customerrelations"
+ xmlns="http://camel.apache.org/itest/customerrelations"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <xsd:include schemaLocation="Person.xsd" />
+ <xsd:include schemaLocation="Address.xsd" />
+
+ <xsd:complexType name="Customer">
+ <xsd:sequence>
+ <xsd:element name="customerNumber" type="xsd:ID"
+ nillable="false" minOccurs="1" maxOccurs="1" />
+ <xsd:element name="person" type="Person"
nillable="false"
+ minOccurs="1" maxOccurs="1" />
+ <xsd:element name="address" type="Address"
nillable="false"
+ minOccurs="1" maxOccurs="1"/>
+ </xsd:sequence>
+ </xsd:complexType>
+
+ <xsd:element name="customer" type="Customer" />
+
+</xsd:schema>
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Customer.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Customer.xsd
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Customer.xsd
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Gender.xsd
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Gender.xsd?rev=675125&view=auto
==============================================================================
--- activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Gender.xsd
(added)
+++ activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Gender.xsd
Wed Jul 9 02:34:37 2008
@@ -0,0 +1,28 @@
+<?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.
+-->
+<xsd:schema targetNamespace="http://camel.apache.org/itest/customerrelations"
xmlns="http://camel.apache.org/itest/customerrelations"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <xsd:simpleType name="Gender">
+ <xsd:restriction base="xsd:string">
+ <xsd:enumeration value="FEMALE" />
+ <xsd:enumeration value="MALE" />
+ </xsd:restriction>
+ </xsd:simpleType>
+
+</xsd:schema>
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Gender.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Gender.xsd
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Gender.xsd
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Person.xsd
URL:
http://svn.apache.org/viewvc/activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Person.xsd?rev=675125&view=auto
==============================================================================
--- activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Person.xsd
(added)
+++ activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Person.xsd
Wed Jul 9 02:34:37 2008
@@ -0,0 +1,39 @@
+<?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.
+-->
+<xsd:schema targetNamespace="http://camel.apache.org/itest/customerrelations"
xmlns="http://camel.apache.org/itest/customerrelations"
+ xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <xsd:include schemaLocation="Gender.xsd" />
+
+ <xsd:simpleType name="Name">
+ <xsd:restriction base="xsd:token">
+ <xsd:minLength value="1" />
+ <xsd:maxLength value="128" />
+ </xsd:restriction>
+ </xsd:simpleType>
+
+ <xsd:complexType name="Person">
+ <xsd:sequence>
+ <xsd:element name="firstname" type="Name"
nillable="false" minOccurs="1" maxOccurs="1" />
+ <xsd:element name="lastname" type="Name"
nillable="false" minOccurs="1" maxOccurs="1" />
+ <xsd:element name="gender" type="Gender"
nillable="false" minOccurs="1" maxOccurs="1" />
+ <xsd:element name="birthday" type="xsd:date"
nillable="false" minOccurs="0" maxOccurs="1" />
+ </xsd:sequence>
+ </xsd:complexType>
+
+</xsd:schema>
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Person.xsd
------------------------------------------------------------------------------
svn:eol-style = native
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Person.xsd
------------------------------------------------------------------------------
svn:keywords = Rev Date
Propchange:
activemq/camel/trunk/tests/camel-itest/src/test/resources/xsd/Person.xsd
------------------------------------------------------------------------------
svn:mime-type = text/xml