summaryrefslogtreecommitdiffstats
path: root/sca-java-1.x/trunk/itest/jaxws/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-1.x/trunk/itest/jaxws/src/main/java')
-rw-r--r--sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/TestWebService.java8
-rw-r--r--sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/impl/TestWebServiceImpl.java11
-rw-r--r--sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/other/TestOther.java37
-rw-r--r--sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/other/package-info.java23
4 files changed, 74 insertions, 5 deletions
diff --git a/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/TestWebService.java b/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/TestWebService.java
index 6ec23d9cb0..0f61efbbbc 100644
--- a/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/TestWebService.java
+++ b/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/TestWebService.java
@@ -22,6 +22,7 @@ import java.util.List;
import java.util.Map;
import javax.jws.WebMethod;
import javax.jws.WebService;
+import jtest.other.TestOther;
@WebService
public interface TestWebService {
@@ -33,13 +34,16 @@ public interface TestWebService {
String sendConcrete(TestConcrete1 testData);
@WebMethod
+ void sendOtherPackage(TestOther testData);
+
+ @WebMethod
void throwAbstract() throws AbstractException;
@WebMethod
void sendList(List<String> data);
- @WebMethod
- Map<String, String> returnMap();
+ //@WebMethod
+ //Map<String, String> returnMap();
@WebMethod
void sendWildcardExtends(Bean1<Bean2> arg);
diff --git a/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/impl/TestWebServiceImpl.java b/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/impl/TestWebServiceImpl.java
index eb089e8be1..c510163009 100644
--- a/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/impl/TestWebServiceImpl.java
+++ b/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/impl/TestWebServiceImpl.java
@@ -28,6 +28,7 @@ import jtest.Bean2;
import jtest.ConcreteException;
import jtest.TestAbstract;
import jtest.TestConcrete1;
+import jtest.other.TestOther;
import jtest.TestWebService;
@WebService(endpointInterface = "jtest.TestWebService")
@@ -42,6 +43,10 @@ public class TestWebServiceImpl implements TestWebService {
return "Hi!";
}
+ public void sendOtherPackage(TestOther testData) {
+ System.out.println(testData.getGreeting());
+ }
+
public void throwAbstract() throws AbstractException {
throw new ConcreteException();
}
@@ -50,9 +55,9 @@ public class TestWebServiceImpl implements TestWebService {
System.out.println(data.get(0) + " " + data.get(1));
}
- public Map<String, String> returnMap() {
- return null;
- }
+ //public Map<String, String> returnMap() {
+ // return null;
+ //}
public void sendWildcardExtends(Bean1<Bean2> arg) {
System.out.println(arg);
diff --git a/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/other/TestOther.java b/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/other/TestOther.java
new file mode 100644
index 0000000000..870f4990ff
--- /dev/null
+++ b/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/other/TestOther.java
@@ -0,0 +1,37 @@
+/*
+ * 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 jtest.other;
+
+import javax.xml.bind.annotation.XmlSchema;
+
+/**
+ * A test class in a different package than the interface
+ */
+public class TestOther {
+ private String greeting;
+
+ public TestOther() {
+ greeting = "Hello Stranger";
+ }
+
+ public String getGreeting() {
+ return greeting;
+ }
+}
diff --git a/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/other/package-info.java b/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/other/package-info.java
new file mode 100644
index 0000000000..9fb7e9829a
--- /dev/null
+++ b/sca-java-1.x/trunk/itest/jaxws/src/main/java/jtest/other/package-info.java
@@ -0,0 +1,23 @@
+/*
+ * 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.
+ */
+
+@XmlSchema(namespace = "http://other.jtest/")
+package jtest.other;
+
+import javax.xml.bind.annotation.XmlSchema;