summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/itest/ws-jaxws/common-contribution
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-03-24 14:03:50 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-03-24 14:03:50 +0000
commit1d1df6d84c8fa18ec35759e934261890b989610b (patch)
tree54647b10f432400172cfdc611eec5fcd8fec313d /sca-java-2.x/trunk/itest/ws-jaxws/common-contribution
parent6dc3ffc802dad9e4ad1e9e7e44dd11a000f4a0c7 (diff)
Test for JAXWS based ws binding that separates the SCA contribution from external JAXWS client and service with which the SCA component interacts.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@927061 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/itest/ws-jaxws/common-contribution')
-rw-r--r--sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/pom.xml46
-rw-r--r--sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Bar.java58
-rw-r--r--sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Foo.java36
-rw-r--r--sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorld.java29
-rw-r--r--sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/src/main/resources/META-INF/sca-contribution.xml22
5 files changed, 191 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/pom.xml b/sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/pom.xml
new file mode 100644
index 0000000000..95df15c66f
--- /dev/null
+++ b/sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/pom.xml
@@ -0,0 +1,46 @@
+<?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.
+-->
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-itest</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <artifactId>itest-ws-jaxws-common-contribution</artifactId>
+ <name>Apache Tuscany SCA iTest WS JAXWS Common Contribution</name>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-feature-core</artifactId>
+ <type>pom</type>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ </build>
+</project>
diff --git a/sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Bar.java b/sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Bar.java
new file mode 100644
index 0000000000..e712ec8b53
--- /dev/null
+++ b/sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Bar.java
@@ -0,0 +1,58 @@
+/*
+ * 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.tuscany.sca.binding.ws.jaxws;
+
+import java.io.Serializable;
+
+public class Bar implements Serializable {
+ private static final long serialVersionUID = 1249963611910502668L;
+
+ private String s;
+ private int x;
+ private Integer y;
+
+ private Boolean b;
+
+ public Boolean getB() {
+ return b;
+ }
+ public void setB(Boolean b) {
+ this.b = b;
+ }
+ public String getS() {
+ return s;
+ }
+ public void setS(String s) {
+ this.s = s;
+ }
+ public int getX() {
+ return x;
+ }
+ public void setX(int x) {
+ this.x = x;
+ }
+ public Integer getY() {
+ return y;
+ }
+ public void setY(Integer y) {
+ this.y = y;
+ }
+
+}
diff --git a/sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Foo.java b/sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Foo.java
new file mode 100644
index 0000000000..d09b2af230
--- /dev/null
+++ b/sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/Foo.java
@@ -0,0 +1,36 @@
+/*
+ * 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.tuscany.sca.binding.ws.jaxws;
+
+import java.io.Serializable;
+
+public class Foo implements Serializable {
+ private static final long serialVersionUID = 4879476066850018458L;
+
+ private Bar[] bars;
+
+ public Bar[] getBars() {
+ return bars;
+ }
+
+ public void setBars(Bar[] bars) {
+ this.bars = bars;
+ }
+}
diff --git a/sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorld.java b/sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorld.java
new file mode 100644
index 0000000000..32f86ee30f
--- /dev/null
+++ b/sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/src/main/java/org/apache/tuscany/sca/binding/ws/jaxws/HelloWorld.java
@@ -0,0 +1,29 @@
+/*
+ * 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.tuscany.sca.binding.ws.jaxws;
+
+import org.oasisopen.sca.annotation.Remotable;
+
+@Remotable
+public interface HelloWorld {
+
+ String getGreetings(String s);
+ Foo getGreetingsComplex(Foo foo);
+}
diff --git a/sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/src/main/resources/META-INF/sca-contribution.xml b/sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/src/main/resources/META-INF/sca-contribution.xml
new file mode 100644
index 0000000000..558485580f
--- /dev/null
+++ b/sca-java-2.x/trunk/itest/ws-jaxws/common-contribution/src/main/resources/META-INF/sca-contribution.xml
@@ -0,0 +1,22 @@
+<?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.
+-->
+<contribution xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912">
+ <export.java package="org.apache.tuscany.sca.binding.ws.jaxws"/>
+</contribution> \ No newline at end of file