diff options
author | scottkurz <scottkurz@13f79535-47bb-0310-9956-ffa450edef68> | 2011-08-03 04:27:51 +0000 |
---|---|---|
committer | scottkurz <scottkurz@13f79535-47bb-0310-9956-ffa450edef68> | 2011-08-03 04:27:51 +0000 |
commit | 4c27bec241a54f3af8319ae68b4540c77cbd1236 (patch) | |
tree | 6a6859fe184f6901f54071033461506a5557ea26 /sca-java-2.x/trunk/testing/itest/data-copy/service/src/main/java | |
parent | 4e218ae60ff647440af6066152b3081c23e4c277 (diff) |
Set up for JSON test.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1153341 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/testing/itest/data-copy/service/src/main/java')
2 files changed, 3 insertions, 4 deletions
diff --git a/sca-java-2.x/trunk/testing/itest/data-copy/service/src/main/java/itest/privatecopy/intf/ServiceIntf.java b/sca-java-2.x/trunk/testing/itest/data-copy/service/src/main/java/itest/privatecopy/intf/ServiceIntf.java index dc25eb07b1..a708974bf4 100644 --- a/sca-java-2.x/trunk/testing/itest/data-copy/service/src/main/java/itest/privatecopy/intf/ServiceIntf.java +++ b/sca-java-2.x/trunk/testing/itest/data-copy/service/src/main/java/itest/privatecopy/intf/ServiceIntf.java @@ -37,8 +37,8 @@ public interface ServiceIntf { boolean areNamesTheSameObjects(Name name1, Name name2);
Name greet(Name name);
- //@RequestWrapper(localName = "greetJSON", targetNamespace = "http://intf.privatecopy.itest/", className = "org.codehaus.jettison.json.JSONObject")
- String greetJSON(JSONObject name);
+ @RequestWrapper(localName = "greetJSON", targetNamespace = "http://intf.privatecopy.itest/", className = "org.codehaus.jettison.json.JSONObject")
+ void greetJSON(JSONObject name);
@RequestWrapper(localName = "greetDOM", targetNamespace = "http://intf.privatecopy.itest/", className = "org.w3c.dom.Node")
// Won't work because of 2931 - lack of separation of req. vs. resp
diff --git a/sca-java-2.x/trunk/testing/itest/data-copy/service/src/main/java/itest/service/impl/ServiceImpl.java b/sca-java-2.x/trunk/testing/itest/data-copy/service/src/main/java/itest/service/impl/ServiceImpl.java index b8fe5eb018..933aadeaa3 100644 --- a/sca-java-2.x/trunk/testing/itest/data-copy/service/src/main/java/itest/service/impl/ServiceImpl.java +++ b/sca-java-2.x/trunk/testing/itest/data-copy/service/src/main/java/itest/service/impl/ServiceImpl.java @@ -56,7 +56,7 @@ public class ServiceImpl implements ServiceIntf { }
@Override
- public String greetJSON(JSONObject name) {
+ public void greetJSON(JSONObject name) {
try {
String firstName = name.getString("firstName");
String lastName = name.getString("lastName");
@@ -65,7 +65,6 @@ public class ServiceImpl implements ServiceIntf { } catch (JSONException exc) {
throw new RuntimeException(exc);
}
- return "good";
}
|