diff options
Diffstat (limited to 'sca-java-2.x/trunk/unreleased/samples/implementation-sample-async/src/test/java/sampleasync')
-rw-r--r-- | sca-java-2.x/trunk/unreleased/samples/implementation-sample-async/src/test/java/sampleasync/impl/UpperSampleAsyncReferenceImpl.java | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/unreleased/samples/implementation-sample-async/src/test/java/sampleasync/impl/UpperSampleAsyncReferenceImpl.java b/sca-java-2.x/trunk/unreleased/samples/implementation-sample-async/src/test/java/sampleasync/impl/UpperSampleAsyncReferenceImpl.java index 5eb9092562..286e619326 100644 --- a/sca-java-2.x/trunk/unreleased/samples/implementation-sample-async/src/test/java/sampleasync/impl/UpperSampleAsyncReferenceImpl.java +++ b/sca-java-2.x/trunk/unreleased/samples/implementation-sample-async/src/test/java/sampleasync/impl/UpperSampleAsyncReferenceImpl.java @@ -22,6 +22,7 @@ package sampleasync.impl; import static java.lang.System.out; import sample.api.Java; import sample.api.WSDL; +import sample.api.WSDLReference; import sampleasync.Upper; /** @@ -33,10 +34,20 @@ import sampleasync.Upper; public class UpperSampleAsyncReferenceImpl { @WSDL("http://sample/upper#Upper") - Upper upper; + WSDLReference upper; public String upper(String s) { - out.println("UpperReferenceImpl.upper(" + s + ")"); - return upper.upper(s); + out.println("UpperSampleAsyncReferenceImpl.upper(" + s + ")"); + upper.callAsync("upper", null); + return null; + } + + /** + * In this implementation the convention is that the + * async callback arrives at an operation named + * operationName + Callback + */ + public void upperCallback(String s) { + out.println("UpperSampleAsyncReferenceImpl.upperCallback(" + s + ")"); } } |