You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by ks...@apache.org on 2017/02/08 20:27:42 UTC
[03/25] servicemix-features git commit: Old modules removed
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-http-osgi/src/main/resources/wsdl/hello_world.wsdl
----------------------------------------------------------------------
diff --git a/itests/cxf-http-osgi/src/main/resources/wsdl/hello_world.wsdl b/itests/cxf-http-osgi/src/main/resources/wsdl/hello_world.wsdl
deleted file mode 100644
index fcf66bd..0000000
--- a/itests/cxf-http-osgi/src/main/resources/wsdl/hello_world.wsdl
+++ /dev/null
@@ -1,79 +0,0 @@
-<?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="HelloWorldImplService"
- targetNamespace="http://cxf.examples.servicemix.apache.org/"
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:tns="http://cxf.examples.servicemix.apache.org/"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <wsdl:types>
- <xsd:schema attributeFormDefault="unqualified"
- elementFormDefault="unqualified"
- targetNamespace="http://cxf.examples.servicemix.apache.org/"
- xmlns:tns="http://cxf.examples.servicemix.apache.org/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <xsd:element name="sayHi" type="tns:sayHi" />
- <xsd:complexType name="sayHi">
- <xsd:sequence>
- <xsd:element minOccurs="0" name="arg0" type="xsd:string" />
- </xsd:sequence>
- </xsd:complexType>
- <xsd:element name="sayHiResponse" type="tns:sayHiResponse" />
- <xsd:complexType name="sayHiResponse">
- <xsd:sequence>
- <xsd:element minOccurs="0" name="return" type="xsd:string" />
- </xsd:sequence>
- </xsd:complexType>
- </xsd:schema>
- </wsdl:types>
- <wsdl:message name="sayHiResponse">
- <wsdl:part element="tns:sayHiResponse" name="parameters">
- </wsdl:part>
- </wsdl:message>
- <wsdl:message name="sayHi">
- <wsdl:part element="tns:sayHi" name="parameters">
- </wsdl:part>
- </wsdl:message>
- <wsdl:portType name="HelloWorld">
- <wsdl:operation name="sayHi">
- <wsdl:input message="tns:sayHi" name="sayHi">
- </wsdl:input>
- <wsdl:output message="tns:sayHiResponse" name="sayHiResponse">
- </wsdl:output>
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:binding name="HelloWorldImplServiceSoapBinding" type="tns:HelloWorld">
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="sayHi">
- <soap:operation soapAction="" style="document" />
- <wsdl:input name="sayHi">
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output name="sayHiResponse">
- <soap:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:service name="HelloWorldImplService">
- <wsdl:port binding="tns:HelloWorldImplServiceSoapBinding" name="HelloWorldImplPort">
- <soap:address location="http://localhost:8181/cxf/HelloWorld" />
- </wsdl:port>
- </wsdl:service>
-</wsdl:definitions>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-jms-osgi/pom.xml
----------------------------------------------------------------------
diff --git a/itests/cxf-jms-osgi/pom.xml b/itests/cxf-jms-osgi/pom.xml
deleted file mode 100644
index ff25bba..0000000
--- a/itests/cxf-jms-osgi/pom.xml
+++ /dev/null
@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-
- <!--
-
- 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.
- -->
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.servicemix.itests</groupId>
- <artifactId>itests</artifactId>
- <version>4.6.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>org.apache.servicemix.itests.cxf-jms-osgi</artifactId>
- <packaging>bundle</packaging>
- <name>Apache ServiceMix :: Features :: Integration Tests :: CXF JMS Transport OSGi</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-frontend-jaxws</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.servicemix.itests</groupId>
- <artifactId>org.apache.servicemix.itests.test-commons</artifactId>
- <version>${project.version}</version>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <configuration>
- <instructions>
- <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
- <Import-Package>
- javax.jws,
- javax.wsdl,
- javax.xml.bind,
- javax.xml.bind.annotation,
- javax.xml.namespace,
- javax.xml.ws,
- META-INF.cxf,
- org.apache.cxf.bus,
- org.apache.cxf.bus.spring,
- org.apache.cxf.bus.resource,
- org.apache.cxf.configuration.spring,
- org.apache.cxf.resource,
- org.springframework.beans.factory.config,
- org.apache.activemq.jndi,
- org.apache.activemq.xbean,
- org.apache.activemq.broker.region.policy,
- javax.transaction,
- org.apache.activemq,
- org.apache.activemq.pool,
- org.apache.activemq.util,
- org.apache.activemq.broker.jmx,
- org.apache.activemq.network,
- org.apache.activemq.store.amq,
- org.apache.activemq.usage,
- org.apache.activemq.broker,
- javax.jms,
- org.apache.servicemix.examples.cxf,
- org.apache.cxf.transport.jms, org.springframework.jms.connection
- </Import-Package>
- <Export-Package>org.apache.servicemix.examples.cxf_jms_osgi</Export-Package>
- <Require-Bundle>org.apache.cxf.bundle</Require-Bundle>
- </instructions>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-jms-osgi/src/main/java/org/apache/servicemix/examples/cxf_jms_osgi/HelloWorldImpl.java
----------------------------------------------------------------------
diff --git a/itests/cxf-jms-osgi/src/main/java/org/apache/servicemix/examples/cxf_jms_osgi/HelloWorldImpl.java b/itests/cxf-jms-osgi/src/main/java/org/apache/servicemix/examples/cxf_jms_osgi/HelloWorldImpl.java
deleted file mode 100644
index d7b8d1e..0000000
--- a/itests/cxf-jms-osgi/src/main/java/org/apache/servicemix/examples/cxf_jms_osgi/HelloWorldImpl.java
+++ /dev/null
@@ -1,36 +0,0 @@
-/**
- * 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.
- */
-// START SNIPPET: service
-package org.apache.servicemix.examples.cxf_jms_osgi;
-
-import javax.jws.WebService;
-import org.apache.servicemix.examples.cxf.*;
-
-//@WebService(endpointInterface = "org.apache.servicemix.examples.cxf.HelloWorld")
-@WebService(serviceName = "HelloWorldImplService",
- portName = "HelloWorldImplPort",
- endpointInterface = "org.apache.servicemix.examples.cxf.HelloWorld",
- targetNamespace = "http://cxf.examples.servicemix.apache.org/")
-public class HelloWorldImpl implements HelloWorld {
-
- public String sayHi(String text) {
- return "Hello " + text;
- }
-}
-// END SNIPPET: service
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-jms-osgi/src/main/resources/META-INF/spring/activemq-broker.xml
----------------------------------------------------------------------
diff --git a/itests/cxf-jms-osgi/src/main/resources/META-INF/spring/activemq-broker.xml b/itests/cxf-jms-osgi/src/main/resources/META-INF/spring/activemq-broker.xml
deleted file mode 100644
index aecb293..0000000
--- a/itests/cxf-jms-osgi/src/main/resources/META-INF/spring/activemq-broker.xml
+++ /dev/null
@@ -1,133 +0,0 @@
-<!--
- 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:amq="http://activemq.apache.org/schema/core"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:osgi="http://www.springframework.org/schema/osgi"
- xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
- http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core.xsd
- http://activemq.apache.org/camel/schema/spring http://activemq.apache.org/camel/schema/spring/camel-spring.xsd
- http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">
-
- <!-- Allows us to use system properties as variables in this configuration file -->
- <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"/>
-
- <broker xmlns="http://activemq.apache.org/schema/core" brokerName="default" dataDirectory="${karaf.base}/data/activemq/default" useShutdownHook="true">
-
- <!-- Destination specific policies using destination names or wildcards -->
- <destinationPolicy>
- <policyMap>
- <policyEntries>
- <policyEntry queue=">" memoryLimit="5mb"/>
- <policyEntry topic=">" memoryLimit="5mb">
- <subscriptionRecoveryPolicy>
- <lastImageSubscriptionRecoveryPolicy/>
- </subscriptionRecoveryPolicy>
- </policyEntry>
- </policyEntries>
- </policyMap>
- </destinationPolicy>
-
- <!-- Use the following to configure how ActiveMQ is exposed in JMX -->
- <managementContext>
- <managementContext createConnector="false"/>
- </managementContext>
-
- <!-- The store and forward broker networks ActiveMQ will listen to -->
- <networkConnectors>
- <!-- by default just auto discover the other brokers -->
- <networkConnector name="default-nc" uri="multicast://default"/>
- <!-- Example of a static configuration:
- <networkConnector name="host1 and host2" uri="static://(tcp://host1:61616,tcp://host2:61616)"/>
- -->
- </networkConnectors>
-
- <persistenceAdapter>
- <amqPersistenceAdapter syncOnWrite="false" directory="${karaf.base}/data/activemq/default" maxFileLength="20 mb"/>
- </persistenceAdapter>
-
- <!-- Use the following if you wish to configure the journal with JDBC -->
- <!--
- <persistenceAdapter>
- <journaledJDBC dataDirectory="${activemq.base}/data" dataSource="#postgres-ds"/>
- </persistenceAdapter>
- -->
-
- <!-- Or if you want to use pure JDBC without a journal -->
- <!--
- <persistenceAdapter>
- <jdbcPersistenceAdapter dataSource="#postgres-ds"/>
- </persistenceAdapter>
- -->
-
- <!-- The maximum about of space the broker will use before slowing down producers -->
- <systemUsage>
- <systemUsage>
- <memoryUsage>
- <memoryUsage limit="20 mb"/>
- </memoryUsage>
- <storeUsage>
- <storeUsage limit="1 gb" name="foo"/>
- </storeUsage>
- <tempUsage>
- <tempUsage limit="100 mb"/>
- </tempUsage>
- </systemUsage>
- </systemUsage>
-
-
- <!-- The transport connectors ActiveMQ will listen to -->
- <transportConnectors>
- <transportConnector name="openwire" uri="tcp://localhost:61616" discoveryUri="multicast://default"/>
- <transportConnector name="stomp" uri="stomp://localhost:61613"/>
- </transportConnectors>
-
- </broker>
-
- <bean id="activemqConnectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
- <property name="brokerURL" value="tcp://localhost:61616" />
- </bean>
-
- <bean id="pooledConnectionFactoryFactory" class="org.apache.activemq.pool.PooledConnectionFactory">
- <property name="maxConnections" value="8" />
- <property name="maximumActive" value="500" />
- <property name="connectionFactory" ref="activemqConnectionFactory" />
- </bean>
- <bean id="pooledConnectionFactory" factory-bean="pooledConnectionFactoryFactory" factory-method="getConnectionFactory" />
-
- <bean id="resourceManager" class="org.apache.activemq.pool.ActiveMQResourceManager" init-method="recoverResource">
- <property name="transactionManager" ref="transactionManager" />
- <property name="connectionFactory" ref="activemqConnectionFactory" />
- <property name="resourceName" value="activemq.default" />
- </bean>
-
- <osgi:reference id="transactionManager" interface="javax.transaction.TransactionManager"
- cardinality="0..1"/>
-
- <osgi:service ref="pooledConnectionFactory">
- <osgi:interfaces>
- <value>javax.jms.ConnectionFactory</value>
- </osgi:interfaces>
- <osgi:service-properties>
- <entry key="name" value="default"/>
- </osgi:service-properties>
- </osgi:service>
-
-</beans>
-
-
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-jms-osgi/src/main/resources/META-INF/spring/beans.xml
----------------------------------------------------------------------
diff --git a/itests/cxf-jms-osgi/src/main/resources/META-INF/spring/beans.xml b/itests/cxf-jms-osgi/src/main/resources/META-INF/spring/beans.xml
deleted file mode 100644
index 3dad1cb..0000000
--- a/itests/cxf-jms-osgi/src/main/resources/META-INF/spring/beans.xml
+++ /dev/null
@@ -1,85 +0,0 @@
-<?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.
--->
-<!-- START SNIPPET: beans -->
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:jaxws="http://cxf.apache.org/jaxws"
- xmlns:osgi="http://www.springframework.org/schema/osgi"
- xmlns:p="http://www.springframework.org/schema/p"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
- http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">
-
- <import resource="classpath:META-INF/cxf/cxf.xml" />
-
- <jaxws:endpoint id="JMSEndpoint"
- implementor="org.apache.servicemix.examples.cxf_jms_osgi.HelloWorldImpl"
- wsdlLocation="wsdl/hello_world.wsdl"
- endpointName="e:HelloWorldImplPort"
- serviceName="s:HelloWorldImplService"
- xmlns:e="http://cxf.examples.servicemix.apache.org/"
- xmlns:s="http://cxf.examples.servicemix.apache.org/">
- <jaxws:features>
- <bean xmlns="http://www.springframework.org/schema/beans"
- class="org.apache.cxf.transport.jms.JMSConfigFeature"
- p:jmsConfig-ref="jmsConfig"/>
- </jaxws:features>
- </jaxws:endpoint>
-
-
- <jaxws:client id="client"
- serviceClass="org.apache.servicemix.examples.cxf.HelloWorld"
- endpointName="e:HelloWorldImplPort"
- serviceName="s:HelloWorldImplService"
- xmlns:e="http://cxf.examples.servicemix.apache.org/"
- xmlns:s="http://cxf.examples.servicemix.apache.org/"
- wsdlLocation="wsdl/hello_world.wsdl"
- >
- <jaxws:features>
- <bean xmlns="http://www.springframework.org/schema/beans"
- class="org.apache.cxf.transport.jms.JMSConfigFeature"
- p:jmsConfig-ref="jmsConfig"/>
- </jaxws:features>
- </jaxws:client>
-
- <bean id="jmsConfig" class="org.apache.cxf.transport.jms.JMSConfiguration"
- p:connectionFactory-ref="jmsConnectionFactory"
- p:targetDestination="test.cxf.jmstransport.queue"
- />
-
- <bean id="jmsConnectionFactory" class="org.springframework.jms.connection.SingleConnectionFactory">
- <property name="targetConnectionFactory">
- <bean class="org.apache.activemq.ActiveMQConnectionFactory">
- <property name="brokerURL" value="tcp://localhost:61616" />
- </bean>
- </property>
- </bean>
-
- <osgi:service id="testHelloWorld" ref="client"
- interface="org.apache.servicemix.examples.cxf.HelloWorld">
- <osgi:service-properties>
- <entry key="TEST-BUNDLE-NAME" value="cxf-jms-osgi" />
- </osgi:service-properties>
- </osgi:service>
-
-
-</beans>
-<!-- END SNIPPET: beans -->
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-jms-osgi/src/main/resources/wsdl/hello_world.wsdl
----------------------------------------------------------------------
diff --git a/itests/cxf-jms-osgi/src/main/resources/wsdl/hello_world.wsdl b/itests/cxf-jms-osgi/src/main/resources/wsdl/hello_world.wsdl
deleted file mode 100644
index ad999fc..0000000
--- a/itests/cxf-jms-osgi/src/main/resources/wsdl/hello_world.wsdl
+++ /dev/null
@@ -1,86 +0,0 @@
-<?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="HelloWorldImplService"
- targetNamespace="http://cxf.examples.servicemix.apache.org/"
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:tns="http://cxf.examples.servicemix.apache.org/"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:jms="http://cxf.apache.org/transports/jms">
- <wsdl:types>
- <xsd:schema attributeFormDefault="unqualified"
- elementFormDefault="unqualified"
- targetNamespace="http://cxf.examples.servicemix.apache.org/"
- xmlns:tns="http://cxf.examples.servicemix.apache.org/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <xsd:element name="sayHi" type="tns:sayHi" />
- <xsd:complexType name="sayHi">
- <xsd:sequence>
- <xsd:element minOccurs="0" name="arg0" type="xsd:string" />
- </xsd:sequence>
- </xsd:complexType>
- <xsd:element name="sayHiResponse" type="tns:sayHiResponse" />
- <xsd:complexType name="sayHiResponse">
- <xsd:sequence>
- <xsd:element minOccurs="0" name="return" type="xsd:string" />
- </xsd:sequence>
- </xsd:complexType>
- </xsd:schema>
- </wsdl:types>
- <wsdl:message name="sayHiResponse">
- <wsdl:part element="tns:sayHiResponse" name="parameters">
- </wsdl:part>
- </wsdl:message>
- <wsdl:message name="sayHi">
- <wsdl:part element="tns:sayHi" name="parameters">
- </wsdl:part>
- </wsdl:message>
- <wsdl:portType name="HelloWorld">
- <wsdl:operation name="sayHi">
- <wsdl:input message="tns:sayHi" name="sayHi">
- </wsdl:input>
- <wsdl:output message="tns:sayHiResponse" name="sayHiResponse">
- </wsdl:output>
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:binding name="HelloWorldImplServiceSoapBinding" type="tns:HelloWorld">
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="sayHi">
- <soap:operation soapAction="" style="document" />
- <wsdl:input name="sayHi">
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output name="sayHiResponse">
- <soap:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:service name="HelloWorldImplService">
- <wsdl:port binding="tns:HelloWorldImplServiceSoapBinding" name="HelloWorldImplPort">
- <jms:address
- jndiConnectionFactoryName="ConnectionFactory"
- jndiDestinationName="dynamicQueues/test.jmstransport.text"> <jms:JMSNamingProperty name="java.naming.factory.initial" value="org.apache.activemq.jndi.ActiveMQInitialContextFactory"/>
- <jms:JMSNamingProperty name="java.naming.provider.url" value="tcp://localhost:61616"/>
- </jms:address>
-
- <jms:server durableSubscriberName="CXF_subscriber"/>
- </wsdl:port>
- </wsdl:service>
-</wsdl:definitions>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-mtom-osgi/pom.xml
----------------------------------------------------------------------
diff --git a/itests/cxf-mtom-osgi/pom.xml b/itests/cxf-mtom-osgi/pom.xml
deleted file mode 100644
index 5d5b309..0000000
--- a/itests/cxf-mtom-osgi/pom.xml
+++ /dev/null
@@ -1,107 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-
- <!--
-
- 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.
- -->
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.servicemix.itests</groupId>
- <artifactId>itests</artifactId>
- <version>4.6.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>org.apache.servicemix.itests.cxf-mtom-osgi</artifactId>
- <packaging>bundle</packaging>
- <name>Apache ServiceMix :: Features :: Integration Tests :: CXF MTOM OSGi</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-frontend-jaxws</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-codegen-plugin</artifactId>
- <executions>
- <execution>
- <id>generate-test-sources</id>
- <phase>generate-sources</phase>
- <configuration>
- <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
- <wsdlOptions>
- <wsdlOption>
- <wsdl>${basedir}/src/main/resources/wsdl/mtom.wsdl</wsdl>
- </wsdlOption>
- </wsdlOptions>
- </configuration>
- <goals>
- <goal>wsdl2java</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <configuration>
- <instructions>
- <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
- <Import-Package>
- javax.jws,
- javax.wsdl,
- javax.xml.bind,
- javax.xml.bind.annotation,
- javax.xml.namespace,
- javax.xml.soap,
- javax.xml.transform,
- javax.xml.ws,
- javax.activation,
- javax.jws.soap,
- javax.mail.util,
- META-INF.cxf,
- META-INF.cxf.osgi,
- org.apache.cxf.feature,
- org.apache.cxf.bus,
- org.apache.cxf.bus.spring,
- org.apache.cxf.bus.resource,
- org.apache.cxf.configuration.spring,
- org.apache.cxf.resource,
- org.apache.cxf.transport.http,
- org.springframework.beans.factory.config
- </Import-Package>
- <Require-Bundle>org.apache.cxf.bundle</Require-Bundle>
- <Export-Package>org.apache.cxf.mime, org.apache.cxf.mime.types,
- org.apache.servicemix.examples.cxf.mtom</Export-Package>
- </instructions>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-mtom-osgi/src/main/java/org/apache/servicemix/examples/cxf/mtom/TestMtomImpl.java
----------------------------------------------------------------------
diff --git a/itests/cxf-mtom-osgi/src/main/java/org/apache/servicemix/examples/cxf/mtom/TestMtomImpl.java b/itests/cxf-mtom-osgi/src/main/java/org/apache/servicemix/examples/cxf/mtom/TestMtomImpl.java
deleted file mode 100644
index 2457d03..0000000
--- a/itests/cxf-mtom-osgi/src/main/java/org/apache/servicemix/examples/cxf/mtom/TestMtomImpl.java
+++ /dev/null
@@ -1,65 +0,0 @@
-/*
- * 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.servicemix.examples.cxf.mtom;
-
-import java.io.ByteArrayOutputStream;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.OutputStream;
-
-import javax.activation.DataHandler;
-import javax.jws.WebService;
-import javax.mail.util.ByteArrayDataSource;
-import javax.xml.ws.Holder;
-
-import org.apache.cxf.mime.TestMtom;
-
-@WebService(serviceName = "TestMtomService",
- portName = "TestMtomPort",
- targetNamespace = "http://cxf.apache.org/mime",
- endpointInterface = "org.apache.cxf.mime.TestMtom",
- wsdlLocation = "testutils/mtom_xop.wsdl")
-public class TestMtomImpl implements TestMtom {
- public void testXop(Holder<String> name, Holder<DataHandler> attachinfo) {
- try {
- System.out.println("Received image with mtom enabled from client");
- InputStream mtomIn = attachinfo.value.getInputStream();
- ByteArrayOutputStream out = new ByteArrayOutputStream();
- copy(mtomIn, out);
- System.out.println("The image data size is " + out.size());
- name.value = "Hello " + name.value;
- mtomIn.close();
- attachinfo.value = new DataHandler(new ByteArrayDataSource(out.toByteArray(),
- attachinfo.value.getContentType()));
- } catch (Exception e) {
- e.printStackTrace();
- }
- }
-
- public static int copy(final InputStream input, final OutputStream output) throws IOException {
- final byte[] buffer = new byte[4096];
- int n = 0;
- n = input.read(buffer);
- int total = 0;
- while (-1 != n) {
- output.write(buffer, 0, n);
- total += n;
- n = input.read(buffer);
- }
- return total;
- }
-}
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-mtom-osgi/src/main/resources/META-INF/spring/beans.xml
----------------------------------------------------------------------
diff --git a/itests/cxf-mtom-osgi/src/main/resources/META-INF/spring/beans.xml b/itests/cxf-mtom-osgi/src/main/resources/META-INF/spring/beans.xml
deleted file mode 100755
index 28d289b..0000000
--- a/itests/cxf-mtom-osgi/src/main/resources/META-INF/spring/beans.xml
+++ /dev/null
@@ -1,71 +0,0 @@
-<?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.
--->
-<!-- START SNIPPET: beans -->
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:jaxws="http://cxf.apache.org/jaxws"
- xmlns:osgi="http://www.springframework.org/schema/osgi"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
- http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">
-
- <import resource="classpath:META-INF/cxf/cxf.xml" />
- <import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
-
- <jaxws:endpoint id="MtomEndpoint"
- implementor="org.apache.servicemix.examples.cxf.mtom.TestMtomImpl"
- address="/mtom"
- wsdlLocation="wsdl/mtom.wsdl"
- endpointName="e:TestMtomPort"
- serviceName="s:TestMtomService"
- xmlns:e="http://cxf.apache.org/mime"
- xmlns:s="http://cxf.apache.org/mime">
- <jaxws:features>
- <bean class="org.apache.cxf.feature.LoggingFeature"/>
- </jaxws:features>
- <jaxws:properties>
- <entry key="mtom-enabled" value="true"/>
- </jaxws:properties>
- </jaxws:endpoint>
-
-
- <jaxws:client id="client"
- serviceClass="org.apache.cxf.mime.TestMtom"
- endpointName="e:TestMtomPort"
- serviceName="s:TestMtomService"
- xmlns:e="http://cxf.apache.org/mime"
- xmlns:s="http://cxf.apache.org/mime"
- wsdlLocation="wsdl/mtom.wsdl"
- address="http://localhost:8080/cxf/mtom">
- <jaxws:features>
- <bean class="org.apache.cxf.feature.LoggingFeature"/>
- </jaxws:features>
- <jaxws:properties>
- <entry key="mtom-enabled" value="true"/>
- </jaxws:properties>
- </jaxws:client>
-
- <osgi:service id="testMtom" ref="client"
- interface="org.apache.cxf.mime.TestMtom"/>
-
-
-</beans>
-<!-- END SNIPPET: beans -->
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-mtom-osgi/src/main/resources/wsdl/mtom.wsdl
----------------------------------------------------------------------
diff --git a/itests/cxf-mtom-osgi/src/main/resources/wsdl/mtom.wsdl b/itests/cxf-mtom-osgi/src/main/resources/wsdl/mtom.wsdl
deleted file mode 100644
index b17c70b..0000000
--- a/itests/cxf-mtom-osgi/src/main/resources/wsdl/mtom.wsdl
+++ /dev/null
@@ -1,83 +0,0 @@
-<?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="SOAPBuilders-mime-cr-test" xmlns:types="http://cxf.apache.org/mime/types"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://cxf.apache.org/mime"
- xmlns:jms="http://cxf.apache.org/transports/jms"
- xmlns:xmime="http://www.w3.org/2005/05/xmlmime" targetNamespace="http://cxf.apache.org/mime">
-
- <wsdl:types>
- <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://cxf.apache.org/mime/types"
- xmlns:xmime="http://www.w3.org/2005/05/xmlmime" elementFormDefault="qualified">
- <complexType name="XopType">
- <sequence>
- <element name="name" type="xsd:string" />
- <element name="attachinfo" type="xsd:base64Binary" xmime:expectedContentTypes="application/octet-stream"/>
- </sequence>
- </complexType>
- <element name="testXop" type="types:XopType" />
- <element name="testXopResponse" type="types:XopType" />
- </schema>
-
- </wsdl:types>
-
- <wsdl:message name="testXopIn">
- <wsdl:part name="data" element="types:testXop" />
- </wsdl:message>
-
- <wsdl:message name="testXopOut">
- <wsdl:part name="data" element="types:testXopResponse" />
- </wsdl:message>
-
-
- <wsdl:portType name="TestMtom">
-
- <wsdl:operation name="testXop">
- <wsdl:input message="tns:testXopIn" />
- <wsdl:output message="tns:testXopOut" />
- </wsdl:operation>
-
- </wsdl:portType>
-
- <wsdl:binding name="TestMtomBinding" type="tns:TestMtom">
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
-
- <wsdl:operation name="testXop">
- <soap:operation soapAction="" />
- <wsdl:input>
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output>
- <soap:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
-
-
- </wsdl:binding>
-
- <wsdl:service name="TestMtomService">
- <wsdl:port name="TestMtomPort" binding="tns:TestMtomBinding">
- <soap:address location="http://localhost:9036/mime-test" />
- </wsdl:port>
- </wsdl:service>
-
-</wsdl:definitions>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-nmr-osgi/pom.xml
----------------------------------------------------------------------
diff --git a/itests/cxf-nmr-osgi/pom.xml b/itests/cxf-nmr-osgi/pom.xml
deleted file mode 100644
index 1ee26de..0000000
--- a/itests/cxf-nmr-osgi/pom.xml
+++ /dev/null
@@ -1,89 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-
- <!--
-
- 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.
- -->
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.servicemix.itests</groupId>
- <artifactId>itests</artifactId>
- <version>4.6.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>org.apache.servicemix.itests.cxf-nmr-osgi</artifactId>
- <packaging>bundle</packaging>
- <name>Apache ServiceMix :: Features :: Integration Tests :: CXF NMR Transport OSGi</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-frontend-jaxws</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.servicemix.itests</groupId>
- <artifactId>org.apache.servicemix.itests.test-commons</artifactId>
- <version>${project.version}</version>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <configuration>
- <instructions>
- <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
- <Import-Package>
- javax.jws,
- javax.wsdl,
- javax.xml.bind,
- javax.xml.bind.annotation,
- javax.xml.namespace,
- javax.xml.ws,
- META-INF.cxf,
- META-INF.cxf.transport.nmr,
- org.apache.cxf.bus,
- org.apache.cxf.bus.spring,
- org.apache.cxf.bus.resource,
- org.apache.cxf.configuration.spring,
- org.apache.cxf.resource,
- org.apache.cxf.feature,
- org.springframework.beans.factory.config,
- org.apache.servicemix.nmr.api,
- org.apache.servicemix.cxf.transport.nmr,
- org.apache.servicemix.nmr.api.event,
- org.apache.servicemix.nmr.api.internal,
- org.apache.servicemix.examples.cxf
- </Import-Package>
- <Export-Package>org.apache.servicemix.examples.cxf_nmr_osgi</Export-Package>
- <Require-Bundle>org.apache.cxf.bundle</Require-Bundle>
- </instructions>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-nmr-osgi/src/main/java/org/apache/servicemix/examples/cxf_nmr_osgi/HelloWorldImpl.java
----------------------------------------------------------------------
diff --git a/itests/cxf-nmr-osgi/src/main/java/org/apache/servicemix/examples/cxf_nmr_osgi/HelloWorldImpl.java b/itests/cxf-nmr-osgi/src/main/java/org/apache/servicemix/examples/cxf_nmr_osgi/HelloWorldImpl.java
deleted file mode 100644
index 1e8fd61..0000000
--- a/itests/cxf-nmr-osgi/src/main/java/org/apache/servicemix/examples/cxf_nmr_osgi/HelloWorldImpl.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * 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.
- */
-// START SNIPPET: service
-package org.apache.servicemix.examples.cxf_nmr_osgi;
-
-import javax.jws.WebService;
-import org.apache.servicemix.examples.cxf.*;
-//@WebService(endpointInterface = "org.apache.servicemix.examples.cxf.HelloWorld")
-@WebService(serviceName = "HelloWorldImplService",
- portName = "HelloWorldImplPort",
- endpointInterface = "org.apache.servicemix.examples.cxf.HelloWorld",
- targetNamespace = "http://cxf.examples.servicemix.apache.org/")
-public class HelloWorldImpl implements HelloWorld {
-
- public String sayHi(String text) {
- return "Hello " + text;
- }
-}
-// END SNIPPET: service
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-nmr-osgi/src/main/resources/META-INF/spring/beans.xml
----------------------------------------------------------------------
diff --git a/itests/cxf-nmr-osgi/src/main/resources/META-INF/spring/beans.xml b/itests/cxf-nmr-osgi/src/main/resources/META-INF/spring/beans.xml
deleted file mode 100644
index a924148..0000000
--- a/itests/cxf-nmr-osgi/src/main/resources/META-INF/spring/beans.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-<?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.
--->
-<!-- START SNIPPET: beans -->
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:jaxws="http://cxf.apache.org/jaxws"
- xmlns:osgi="http://www.springframework.org/schema/osgi"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
- http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">
-
- <import resource="classpath:META-INF/cxf/cxf.xml" />
- <import resource="classpath:META-INF/cxf/transport/nmr/cxf-transport-nmr.xml" />
-
- <jaxws:endpoint id="NMREndpoint"
- implementor="org.apache.servicemix.examples.cxf_nmr_osgi.HelloWorldImpl"
- endpointName="e:HelloWorldImplPort"
- serviceName="s:HelloWorldImplService"
- xmlns:e="http://cxf.examples.servicemix.apache.org/"
- address="nmr:HelloWorld"
- xmlns:s="http://cxf.examples.servicemix.apache.org/">
- <jaxws:features>
- <bean class="org.apache.cxf.feature.LoggingFeature"/>
- </jaxws:features>
- </jaxws:endpoint>
-
-
- <jaxws:client id="client"
- serviceClass="org.apache.servicemix.examples.cxf.HelloWorld"
- xmlns:e="http://cxf.examples.servicemix.apache.org/"
- xmlns:s="http://cxf.examples.servicemix.apache.org/"
- endpointName="e:HelloWorldImplPort"
- serviceName="s:HelloWorldImplService"
- address="nmr:HelloWorld"
- >
- <jaxws:features>
- <bean class="org.apache.cxf.feature.LoggingFeature"/>
- </jaxws:features>
- </jaxws:client>
-
- <osgi:service id="testHelloWorld" ref="client"
- interface="org.apache.servicemix.examples.cxf.HelloWorld">
- <osgi:service-properties>
- <entry key="TEST-BUNDLE-NAME" value="cxf-nmr-osgi" />
- </osgi:service-properties>
- </osgi:service>
-
-
-</beans>
-<!-- END SNIPPET: beans -->
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-nmr-osgi/src/main/resources/wsdl/hello_world.wsdl
----------------------------------------------------------------------
diff --git a/itests/cxf-nmr-osgi/src/main/resources/wsdl/hello_world.wsdl b/itests/cxf-nmr-osgi/src/main/resources/wsdl/hello_world.wsdl
deleted file mode 100644
index f567b2a..0000000
--- a/itests/cxf-nmr-osgi/src/main/resources/wsdl/hello_world.wsdl
+++ /dev/null
@@ -1,81 +0,0 @@
-<?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="HelloWorldImplService"
- targetNamespace="http://cxf.examples.servicemix.apache.org/"
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:tns="http://cxf.examples.servicemix.apache.org/"
- xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:jms="http://cxf.apache.org/transports/jms"
- xmlns:nmr="http://cxf.servicemix.apache.org/transport/nmr">
- <wsdl:types>
- <xsd:schema attributeFormDefault="unqualified"
- elementFormDefault="unqualified"
- targetNamespace="http://cxf.examples.servicemix.apache.org/"
- xmlns:tns="http://cxf.examples.servicemix.apache.org/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema">
- <xsd:element name="sayHi" type="tns:sayHi" />
- <xsd:complexType name="sayHi">
- <xsd:sequence>
- <xsd:element minOccurs="0" name="arg0" type="xsd:string" />
- </xsd:sequence>
- </xsd:complexType>
- <xsd:element name="sayHiResponse" type="tns:sayHiResponse" />
- <xsd:complexType name="sayHiResponse">
- <xsd:sequence>
- <xsd:element minOccurs="0" name="return" type="xsd:string" />
- </xsd:sequence>
- </xsd:complexType>
- </xsd:schema>
- </wsdl:types>
- <wsdl:message name="sayHiResponse">
- <wsdl:part element="tns:sayHiResponse" name="parameters">
- </wsdl:part>
- </wsdl:message>
- <wsdl:message name="sayHi">
- <wsdl:part element="tns:sayHi" name="parameters">
- </wsdl:part>
- </wsdl:message>
- <wsdl:portType name="HelloWorld">
- <wsdl:operation name="sayHi">
- <wsdl:input message="tns:sayHi" name="sayHi">
- </wsdl:input>
- <wsdl:output message="tns:sayHiResponse" name="sayHiResponse">
- </wsdl:output>
- </wsdl:operation>
- </wsdl:portType>
- <wsdl:binding name="HelloWorldImplServiceSoapBinding" type="tns:HelloWorld">
- <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
- <wsdl:operation name="sayHi">
- <soap:operation soapAction="" style="document" />
- <wsdl:input name="sayHi">
- <soap:body use="literal" />
- </wsdl:input>
- <wsdl:output name="sayHiResponse">
- <soap:body use="literal" />
- </wsdl:output>
- </wsdl:operation>
- </wsdl:binding>
- <wsdl:service name="HelloWorldImplService">
- <wsdl:port binding="tns:HelloWorldImplServiceSoapBinding" name="HelloWorldImplPort">
- <nmr:address location="nmr:HelloWorld"/>
- </wsdl:port>
- </wsdl:service>
-</wsdl:definitions>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-soap-handler-osgi/pom.xml
----------------------------------------------------------------------
diff --git a/itests/cxf-soap-handler-osgi/pom.xml b/itests/cxf-soap-handler-osgi/pom.xml
deleted file mode 100644
index 2268001..0000000
--- a/itests/cxf-soap-handler-osgi/pom.xml
+++ /dev/null
@@ -1,105 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
-
- <!--
-
- 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.
- -->
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.servicemix.itests</groupId>
- <artifactId>itests</artifactId>
- <version>4.6.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>org.apache.servicemix.itests.cxf-soap-handler-osgi</artifactId>
- <packaging>bundle</packaging>
- <name>Apache ServiceMix :: Features :: Integration Tests :: CXF SOAP Handler OSGi</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-rt-frontend-jaxws</artifactId>
- <scope>provided</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.cxf</groupId>
- <artifactId>cxf-codegen-plugin</artifactId>
- <executions>
- <execution>
- <id>generate-test-sources</id>
- <phase>generate-sources</phase>
- <configuration>
- <sourceRoot>${basedir}/target/generated/src/main/java</sourceRoot>
- <wsdlOptions>
- <wsdlOption>
- <wsdl>${basedir}/src/main/resources/wsdl/addNumbers.wsdl</wsdl>
- </wsdlOption>
- </wsdlOptions>
- </configuration>
- <goals>
- <goal>wsdl2java</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <configuration>
- <instructions>
- <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
- <Import-Package>
- javax.jws,
- javax.wsdl,
- javax.xml.bind,
- javax.xml.bind.annotation,
- javax.xml.namespace,
- javax.xml.soap,
- javax.xml.transform,
- javax.xml.ws,
- javax.xml.ws.handler,
- javax.xml.ws.handler.soap,
- META-INF.cxf,
- META-INF.cxf.osgi,
- org.apache.cxf.bus,
- org.apache.cxf.bus.spring,
- org.apache.cxf.bus.resource,
- org.apache.cxf.configuration.spring,
- org.apache.cxf.resource,
- org.apache.cxf.transport.http,
- org.springframework.beans.factory.config
- </Import-Package>
- <Require-Bundle>org.apache.cxf.bundle</Require-Bundle>
- <Export-Package>org.apache.handlers.types,
- org.apache.handlers,org.apache.servicemix.examples.cxf.soaphandler</Export-Package>
- </instructions>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-soap-handler-osgi/src/main/java/org/apache/servicemix/examples/cxf/soaphandler/AddNumbersImpl.java
----------------------------------------------------------------------
diff --git a/itests/cxf-soap-handler-osgi/src/main/java/org/apache/servicemix/examples/cxf/soaphandler/AddNumbersImpl.java b/itests/cxf-soap-handler-osgi/src/main/java/org/apache/servicemix/examples/cxf/soaphandler/AddNumbersImpl.java
deleted file mode 100644
index 3551ed8..0000000
--- a/itests/cxf-soap-handler-osgi/src/main/java/org/apache/servicemix/examples/cxf/soaphandler/AddNumbersImpl.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/**
- * 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.servicemix.examples.cxf.soaphandler;
-
-import javax.jws.HandlerChain;
-import javax.jws.WebService;
-import org.apache.handlers.AddNumbers;
-import org.apache.handlers.AddNumbersFault;
-import org.apache.handlers.types.FaultDetail;
-
-
-@WebService(name = "AddNumbers",
- targetNamespace = "http://apache.org/handlers",
- portName = "AddNumbersPort",
- endpointInterface = "org.apache.handlers.AddNumbers",
- serviceName = "AddNumbersService")
-@HandlerChain(file = "//config/demo_handlers.xml")
-public class AddNumbersImpl implements AddNumbers {
-
-
- /**
- * @param number1
- * @param number2
- * @return The sum
- * @throws AddNumbersException
- * if any of the numbers to be added is negative.
- */
- public int addNumbers(int number1, int number2) throws AddNumbersFault {
- System.out.println("addNumbers called....." + number1 + ":" + number2);
- if (number1 < 0 || number2 < 0) {
- String message = "Negative number cant be added!";
- String detail = "Numbers: " + number1 + ", " + number2;
- FaultDetail fault = new FaultDetail();
- fault.setMessage(message);
- fault.setFaultInfo(detail);
- throw new AddNumbersFault(message, fault);
- }
- return number1 + number2;
- }
-
-}
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-soap-handler-osgi/src/main/java/org/apache/servicemix/examples/cxf/soaphandler/LoggingHandler.java
----------------------------------------------------------------------
diff --git a/itests/cxf-soap-handler-osgi/src/main/java/org/apache/servicemix/examples/cxf/soaphandler/LoggingHandler.java b/itests/cxf-soap-handler-osgi/src/main/java/org/apache/servicemix/examples/cxf/soaphandler/LoggingHandler.java
deleted file mode 100644
index ba58a62..0000000
--- a/itests/cxf-soap-handler-osgi/src/main/java/org/apache/servicemix/examples/cxf/soaphandler/LoggingHandler.java
+++ /dev/null
@@ -1,104 +0,0 @@
-/**
- * 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.servicemix.examples.cxf.soaphandler;
-
-
-import java.io.PrintStream;
-import java.util.Map;
-import java.util.Set;
-
-import javax.xml.namespace.QName;
-import javax.xml.soap.SOAPMessage;
-import javax.xml.ws.handler.MessageContext;
-import javax.xml.ws.handler.soap.SOAPHandler;
-import javax.xml.ws.handler.soap.SOAPMessageContext;
-
-/*
- * This simple SOAPHandler will output the contents of incoming
- * and outgoing messages.
- */
-public class LoggingHandler implements SOAPHandler<SOAPMessageContext> {
-
- private PrintStream out;
-
- public LoggingHandler() {
- setLogStream(System.out);
- }
-
- protected final void setLogStream(PrintStream ps) {
- out = ps;
- }
-
- public void init(Map c) {
- System.out.println("LoggingHandler : init() Called....");
- }
-
- public Set<QName> getHeaders() {
- return null;
- }
-
- public boolean handleMessage(SOAPMessageContext smc) {
- System.out.println("LoggingHandler : handleMessage Called....");
- logToSystemOut(smc);
- return true;
- }
-
- public boolean handleFault(SOAPMessageContext smc) {
- System.out.println("LoggingHandler : handleFault Called....");
- logToSystemOut(smc);
- return true;
- }
-
- // nothing to clean up
- public void close(MessageContext messageContext) {
- System.out.println("LoggingHandler : close() Called....");
- }
-
- // nothing to clean up
- public void destroy() {
- System.out.println("LoggingHandler : destroy() Called....");
- }
-
- /*
- * Check the MESSAGE_OUTBOUND_PROPERTY in the context
- * to see if this is an outgoing or incoming message.
- * Write a brief message to the print stream and
- * output the message. The writeTo() method can throw
- * SOAPException or IOException
- */
- protected void logToSystemOut(SOAPMessageContext smc) {
- Boolean outboundProperty = (Boolean)
- smc.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
-
- if (outboundProperty.booleanValue()) {
- out.println("\nOutbound message:");
- } else {
- out.println("\nInbound message:");
- }
-
- SOAPMessage message = smc.getMessage();
- try {
- message.writeTo(out);
- out.println();
- } catch (Exception e) {
- out.println("Exception in handler: " + e);
- }
- }
-}
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-soap-handler-osgi/src/main/java/org/apache/servicemix/examples/cxf/soaphandler/SmallNumberHandler.java
----------------------------------------------------------------------
diff --git a/itests/cxf-soap-handler-osgi/src/main/java/org/apache/servicemix/examples/cxf/soaphandler/SmallNumberHandler.java b/itests/cxf-soap-handler-osgi/src/main/java/org/apache/servicemix/examples/cxf/soaphandler/SmallNumberHandler.java
deleted file mode 100644
index 54365ad..0000000
--- a/itests/cxf-soap-handler-osgi/src/main/java/org/apache/servicemix/examples/cxf/soaphandler/SmallNumberHandler.java
+++ /dev/null
@@ -1,135 +0,0 @@
-/**
- * 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.servicemix.examples.cxf.soaphandler;
-
-import java.util.Map;
-import javax.xml.bind.JAXBContext;
-import javax.xml.bind.JAXBElement;
-import javax.xml.bind.JAXBException;
-import javax.xml.transform.Source;
-import javax.xml.ws.LogicalMessage;
-import javax.xml.ws.ProtocolException;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.handler.LogicalHandler;
-import javax.xml.ws.handler.LogicalMessageContext;
-import javax.xml.ws.handler.MessageContext;
-import org.apache.handlers.types.AddNumbers;
-import org.apache.handlers.types.AddNumbersResponse;
-import org.apache.handlers.types.ObjectFactory;
-
-
-
-/**
- * handles addition of small numbers.
- */
-public class SmallNumberHandler implements LogicalHandler<LogicalMessageContext> {
-
-
- // Implementation of javax.xml.ws.handler.Handler
-
- public final boolean handleMessage(LogicalMessageContext messageContext) {
- System.out.println("LogicalMessageHandler handleMessage called");
-
- try {
- boolean outbound = (Boolean)messageContext.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
-
- if (outbound) {
- // get the LogicalMessage from our context
- //
- LogicalMessage msg = messageContext.getMessage();
-
- // check the payload, if its an AddNumbers request, we'll intervene
- //
- JAXBContext jaxbContext = JAXBContext.newInstance(ObjectFactory.class);
- Object payload = msg.getPayload(jaxbContext);
- if (payload instanceof JAXBElement) {
- payload = ((JAXBElement)payload).getValue();
- }
-
- if (payload instanceof AddNumbers) {
- AddNumbers req = (AddNumbers)payload;
-
- // now, if the arguments are small, let's do the calculation here
- //
- int a = req.getArg0();
- int b = req.getArg1();
-
- if (isSmall(a) && isSmall(b)) {
- int answer = a + b;
-
- //System.out.printf("SmallNumberHandler addNumbers(%d, %d) == %d\n", a, b, answer);
- // ok, we've done the calculation, so build the
- // response and set it as the payload of the message
-
- AddNumbersResponse resp = new AddNumbersResponse();
- resp.setReturn(answer);
- msg.setPayload(new ObjectFactory().createAddNumbersResponse(resp),
- jaxbContext);
-
- Source src = msg.getPayload();
- msg.setPayload(src);
-
- payload = msg.getPayload(jaxbContext);
- if (payload instanceof JAXBElement) {
- payload = ((JAXBElement)payload).getValue();
- }
-
- AddNumbersResponse resp2 = (AddNumbersResponse)payload;
- if (resp2 == resp) {
- throw new WebServiceException("Shouldn't be the same object");
- }
-
- // finally, return false, indicating that request
- // processing stops here and our answer will be
- // returned to the client
- return false;
- }
- }
- }
- return true;
- } catch (JAXBException ex) {
- throw new ProtocolException(ex);
- }
-
- }
-
- public final boolean handleFault(LogicalMessageContext messageContext) {
- System.out.println("LogicalMessageHandler handleFault called");
- System.out.println(messageContext);
-
- return true;
- }
-
- public void close(MessageContext ctx) {
- System.out.println("LogicalHandler close called");
- }
-
- public void init(Map config) {
- System.out.println("LogicalHandler init called");
- }
-
- public void destroy() {
- System.out.println("LogicalHandler close called");
- }
-
- private boolean isSmall(int i) {
- return i > 0 && i <= 10;
- }
-}
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-soap-handler-osgi/src/main/resources/META-INF/spring/beans.xml
----------------------------------------------------------------------
diff --git a/itests/cxf-soap-handler-osgi/src/main/resources/META-INF/spring/beans.xml b/itests/cxf-soap-handler-osgi/src/main/resources/META-INF/spring/beans.xml
deleted file mode 100644
index 90bfc9e..0000000
--- a/itests/cxf-soap-handler-osgi/src/main/resources/META-INF/spring/beans.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?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.
--->
-<!-- START SNIPPET: beans -->
-<beans xmlns="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- xmlns:jaxws="http://cxf.apache.org/jaxws"
- xmlns:osgi="http://www.springframework.org/schema/osgi"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd
- http://www.springframework.org/schema/osgi http://www.springframework.org/schema/osgi/spring-osgi.xsd">
-
- <import resource="classpath:META-INF/cxf/cxf.xml" />
- <import resource="classpath:META-INF/cxf/osgi/cxf-extension-osgi.xml" />
-
- <jaxws:endpoint id="SoapHandlerEndpoint"
- implementor="org.apache.servicemix.examples.cxf.soaphandler.AddNumbersImpl"
- address="/SoapHandler"
- wsdlLocation="wsdl/addNumbers.wsdl"
- endpointName="e:AddNumbersPort"
- serviceName="s:AddNumbersService"
- xmlns:e="http://apache.org/handlers"
- xmlns:s="http://apache.org/handlers"/>
-
-
- <jaxws:client id="client"
- serviceClass="org.apache.handlers.AddNumbers"
- endpointName="e:AddNumbersPort"
- serviceName="s:AddNumbersService"
- xmlns:e="http://apache.org/handlers"
- xmlns:s="http://apache.org/handlers"
- wsdlLocation="wsdl/addNumbers.wsdl"
- address="http://localhost:8080/cxf/SoapHandler"/>
-
- <osgi:service id="testHelloWorld" ref="client"
- interface="org.apache.handlers.AddNumbers"/>
-
-
-</beans>
-<!-- END SNIPPET: beans -->
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-soap-handler-osgi/src/main/resources/config/demo_handlers.xml
----------------------------------------------------------------------
diff --git a/itests/cxf-soap-handler-osgi/src/main/resources/config/demo_handlers.xml b/itests/cxf-soap-handler-osgi/src/main/resources/config/demo_handlers.xml
deleted file mode 100644
index 5bd27b5..0000000
--- a/itests/cxf-soap-handler-osgi/src/main/resources/config/demo_handlers.xml
+++ /dev/null
@@ -1,29 +0,0 @@
-<?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.
--->
-<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
-xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-xsi:schemaLocation="http://java.sun.com/xml/ns/javaee">
- <handler-chain>
- <handler>
- <handler-name>LoggingHandler</handler-name>
- <handler-class>org.apache.servicemix.examples.cxf.soaphandler.LoggingHandler</handler-class>
- </handler>
- </handler-chain>
-</handler-chains>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-soap-handler-osgi/src/main/resources/wsdl/addNumbers.wsdl
----------------------------------------------------------------------
diff --git a/itests/cxf-soap-handler-osgi/src/main/resources/wsdl/addNumbers.wsdl b/itests/cxf-soap-handler-osgi/src/main/resources/wsdl/addNumbers.wsdl
deleted file mode 100644
index b3e56e3..0000000
--- a/itests/cxf-soap-handler-osgi/src/main/resources/wsdl/addNumbers.wsdl
+++ /dev/null
@@ -1,96 +0,0 @@
-<?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.
--->
-<definitions
- name="AddNumbers"
- targetNamespace="http://apache.org/handlers"
- xmlns:tns="http://apache.org/handlers"
- xmlns="http://schemas.xmlsoap.org/wsdl/"
- xmlns:xsd="http://www.w3.org/2001/XMLSchema"
- xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
- xmlns:x1="http://apache.org/handlers/types">
- <types>
- <xsd:schema
- xmlns="http://www.w3.org/2001/XMLSchema"
- targetNamespace="http://apache.org/handlers/types"
- elementFormDefault="qualified">
-
- <complexType name="addNumbersResponse">
- <sequence>
- <element name="return" type="xsd:int" />
- </sequence>
- </complexType>
- <element name="addNumbersResponse" type="x1:addNumbersResponse"/>
-
- <complexType name="addNumbers">
- <sequence>
- <element name="arg0" type="xsd:int" />
- <element name="arg1" type="xsd:int" />
- </sequence>
- </complexType>
- <element name="addNumbers" type="x1:addNumbers"/>
-
- <element name="FaultDetail" type="x1:FaultDetail" />
- <complexType name="FaultDetail">
- <sequence>
- <element name="faultInfo" type="xsd:string" />
- <element name="message" type="xsd:string" />
- </sequence>
- </complexType>
- </xsd:schema>
- </types>
- <message name="addNumbers">
- <part name="parameters" element="x1:addNumbers" />
- </message>
- <message name="addNumbersResponse">
- <part name="result" element="x1:addNumbersResponse" />
- </message>
- <message name="addNumbersFault">
- <part name="AddNumbersFault" element="x1:FaultDetail" />
- </message>
- <portType name="AddNumbers">
- <operation name="addNumbers">
- <input message="tns:addNumbers" />
- <output message="tns:addNumbersResponse" />
- <fault name="addNumbersFault" message="tns:addNumbersFault"/>
- </operation>
- </portType>
- <binding name="AddNumbersBinding" type="tns:AddNumbers">
- <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
- <operation name="addNumbers">
- <soap:operation soapAction="" />
- <input>
- <soap:body use="literal" />
- </input>
- <output>
- <soap:body use="literal" />
- </output>
- <fault name="addNumbersFault">
- <soap:fault name="addNumbersFault" use="literal" />
- </fault>
- </operation>
- </binding>
- <service name="AddNumbersService">
- <port name="AddNumbersPort" binding="tns:AddNumbersBinding">
- <soap:address location="http://localhost:8181/cxf/SoapHandler" />
- </port>
- </service>
-</definitions>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-ws-security-osgi/pom.xml
----------------------------------------------------------------------
diff --git a/itests/cxf-ws-security-osgi/pom.xml b/itests/cxf-ws-security-osgi/pom.xml
deleted file mode 100644
index 05d9498..0000000
--- a/itests/cxf-ws-security-osgi/pom.xml
+++ /dev/null
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
-
- <!--
-
- 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.
- -->
-
- <modelVersion>4.0.0</modelVersion>
-
- <parent>
- <groupId>org.apache.servicemix.itests</groupId>
- <artifactId>itests</artifactId>
- <version>4.6.0-SNAPSHOT</version>
- </parent>
-
- <artifactId>org.apache.servicemix.itests.cxf-ws-security-osgi</artifactId>
- <packaging>bundle</packaging>
- <name>Apache ServiceMix :: Features :: Integration Tests :: CXF WS Security OSGi</name>
-
- <dependencies>
- <dependency>
- <groupId>org.apache.geronimo.specs</groupId>
- <artifactId>geronimo-ws-metadata_2.0_spec</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.servicemix</groupId>
- <artifactId>servicemix-utils</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.ws.security</groupId>
- <artifactId>wss4j</artifactId>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.felix</groupId>
- <artifactId>maven-bundle-plugin</artifactId>
- <configuration>
- <instructions>
- <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
- <Import-Package>
- javax.jws,
- javax.xml.bind.annotation,
- javax.wsdl,
- javax.xml.namespace,
- META-INF.cxf,
- META-INF.cxf.osgi,
- org.apache.cxf.bus,
- org.apache.cxf.bus.spring,
- org.apache.cxf.bus.resource,
- org.apache.cxf.configuration.spring,
- org.apache.cxf.resource,
- org.apache.cxf.transport.http,
- org.apache.cxf.ws.security.wss4j,
- org.springframework.beans.factory.config,
- javax.security.auth.callback,
- org.apache.ws.security
- </Import-Package>
- <Export-Package>org.apache.servicemix.examples.cxf</Export-Package>
- <Require-Bundle>org.apache.cxf.bundle</Require-Bundle>
- </instructions>
- </configuration>
- </plugin>
- </plugins>
- </build>
-
-</project>
http://git-wip-us.apache.org/repos/asf/servicemix-features/blob/d358d2ea/itests/cxf-ws-security-osgi/src/main/java/org/apache/servicemix/examples/cxf/HelloWorld.java
----------------------------------------------------------------------
diff --git a/itests/cxf-ws-security-osgi/src/main/java/org/apache/servicemix/examples/cxf/HelloWorld.java b/itests/cxf-ws-security-osgi/src/main/java/org/apache/servicemix/examples/cxf/HelloWorld.java
deleted file mode 100755
index 14dad3a..0000000
--- a/itests/cxf-ws-security-osgi/src/main/java/org/apache/servicemix/examples/cxf/HelloWorld.java
+++ /dev/null
@@ -1,28 +0,0 @@
-/**
- * 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.
- */
-// START SNIPPET: service
-package org.apache.servicemix.examples.cxf;
-
-import javax.jws.WebService;
-
-@WebService
-public interface HelloWorld {
- String sayHi(String text);
-}
-// END SNIPPET: service