From e7b00da5c282db42c1bd48273a12717f2363b00f Mon Sep 17 00:00:00 2001 From: nash Date: Sat, 4 Dec 2010 09:32:09 +0000 Subject: TUSCANY-3800: Generate correct WSDL for two-dimensional arrays git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1042122 13f79535-47bb-0310-9956-ffa450edef68 --- .../tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sca-java-1.x/trunk') diff --git a/sca-java-1.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java b/sca-java-1.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java index 542517182c..00a767c089 100644 --- a/sca-java-1.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java +++ b/sca-java-1.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/Interface2WSDLGenerator.java @@ -176,9 +176,11 @@ public class Interface2WSDLGenerator { if (db == null) { return null; } - if ("java:array".equals(db)) { - DataType dt = (DataType)type.getLogical(); - db = dt.getDataBinding(); + + // TUSCANY-3800 + while ("java:array".equals(db)) { + type = (DataType)type.getLogical(); + db = type.getDataBinding(); } return helpers.get(db); } -- cgit v1.2.3