From 181bc548fd1a9b5a6f39882cb4102751230de642 Mon Sep 17 00:00:00 2001 From: slaws Date: Mon, 10 Jan 2011 15:08:32 +0000 Subject: 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 --- .../src/main/java/sample/impl/SampleWSDLProxy.java | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'sca-java-2.x/trunk/samples/extending-tuscany/implementation-sample/src/main/java/sample/impl') 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 @@ -67,6 +67,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 -- cgit v1.2.3