diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-12-01 17:15:58 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2010-12-01 17:15:58 +0000 |
commit | 34c7072ebd7f00d9405eaecc9ba2738c2a68f203 (patch) | |
tree | 50b7ce2b2090e896e13febc71c3c243a87141008 /sca-java-2.x/trunk/unreleased | |
parent | df985887c3369c9bb1de8e8a4f846d1ee9e0a2db (diff) |
Correct the implementation of the service to expect/produce elements
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1041088 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | sca-java-2.x/trunk/unreleased/samples/implementation-sample-async/src/test/java/sampleasync/impl/UpperSampleAsyncServiceImpl.java | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/unreleased/samples/implementation-sample-async/src/test/java/sampleasync/impl/UpperSampleAsyncServiceImpl.java b/sca-java-2.x/trunk/unreleased/samples/implementation-sample-async/src/test/java/sampleasync/impl/UpperSampleAsyncServiceImpl.java index 271517c115..41a85e44a0 100644 --- a/sca-java-2.x/trunk/unreleased/samples/implementation-sample-async/src/test/java/sampleasync/impl/UpperSampleAsyncServiceImpl.java +++ b/sca-java-2.x/trunk/unreleased/samples/implementation-sample-async/src/test/java/sampleasync/impl/UpperSampleAsyncServiceImpl.java @@ -20,6 +20,11 @@ package sampleasync.impl; import static java.lang.System.out; +import static sample.Xutil.elem; +import static sample.Xutil.text; +import static sample.Xutil.xdom; + +import org.w3c.dom.Element; import sample.api.WSDL; @@ -31,8 +36,10 @@ import sample.api.WSDL; @WSDL("http://sample/upper#Upper") public class UpperSampleAsyncServiceImpl { - public String upper(String s) { - out.println("UpperSampleAsyncServiceImpl.upper(" + s + ")"); - return s.toUpperCase(); + public Element call(String op, Element e) { + String input = e.getTextContent(); + out.println("UpperSampleAsyncServiceImpl.upper(" + input + ")"); + String output = input.toUpperCase(); + return xdom("http://sample/upper", "upperResponse", elem("result", text(output))); } } |