summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/src/main/java/sample/impl
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-01-10 15:08:32 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-01-10 15:08:32 +0000
commit181bc548fd1a9b5a6f39882cb4102751230de642 (patch)
tree59e48664084e6237dae49ab0701e7f1fc47d5d17 /sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/src/main/java/sample/impl
parent966fa611b66117a5eb448369c3a12f6dc7cccb33 (diff)
Add a simple test case to look a implementations that use doc/lit (bare) interfaces. There was a conversation on the ML about whether databinding is clever enough to translate between bare and wrapped as the data passes from implementation to binding as it's send through a reference. At the moment the test gives me index out of bounds.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1057230 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/src/main/java/sample/impl')
-rw-r--r--sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/src/main/java/sample/impl/SampleWSDLProxy.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/src/main/java/sample/impl/SampleWSDLProxy.java b/sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/src/main/java/sample/impl/SampleWSDLProxy.java
index 176dac6b15..5b42bce28f 100644
--- a/sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/src/main/java/sample/impl/SampleWSDLProxy.java
+++ b/sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/src/main/java/sample/impl/SampleWSDLProxy.java
@@ -68,6 +68,16 @@ class SampleWSDLProxy implements WSDLReference {
}
@Override
+ public Element callBare(String op, Element... e) {
+ try {
+ // Invoke the named operation on the endpoint reference
+ return (Element)repr.invoke(ops.get(op), e);
+ } catch(InvocationTargetException ex) {
+ throw new RuntimeException(ex);
+ }
+ }
+
+ @Override
public void callAsync(String op, Element e) {
// Asynchronously invoke the named operation on the endpoint reference
Message message = mf.createMessage();