diff options
author | scottkurz <scottkurz@13f79535-47bb-0310-9956-ffa450edef68> | 2011-01-20 21:34:57 +0000 |
---|---|---|
committer | scottkurz <scottkurz@13f79535-47bb-0310-9956-ffa450edef68> | 2011-01-20 21:34:57 +0000 |
commit | 5f133f5fbe22e2794aa726ed610325ab3e021213 (patch) | |
tree | c0eee026ad7210b86d68463adeeafa77dbcd0cbf /sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache | |
parent | 468c848e6fa977c72c9f614a3dbfe42fb0f24712 (diff) |
Fix IndexOutOfBoundsException from TUSCANY-3819 fix.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1061531 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache')
-rw-r--r-- | sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLOperationIntrospectorImpl.java | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLOperationIntrospectorImpl.java b/sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLOperationIntrospectorImpl.java index 48aab67ded..739cf4af75 100644 --- a/sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLOperationIntrospectorImpl.java +++ b/sca-java-2.x/trunk/modules/interface-wsdl/src/main/java/org/apache/tuscany/sca/interfacedef/wsdl/impl/WSDLOperationIntrospectorImpl.java @@ -38,6 +38,8 @@ import org.apache.tuscany.sca.contribution.processor.ProcessorContext; import org.apache.tuscany.sca.contribution.resolver.ModelResolver; import org.apache.tuscany.sca.interfacedef.DataType; import org.apache.tuscany.sca.interfacedef.Operation; +import org.apache.tuscany.sca.interfacedef.ParameterMode; + import static org.apache.tuscany.sca.interfacedef.Operation.IDL_INPUT; import static org.apache.tuscany.sca.interfacedef.Operation.IDL_OUTPUT; import org.apache.tuscany.sca.interfacedef.impl.DataTypeImpl; @@ -209,7 +211,12 @@ public class WSDLOperationIntrospectorImpl { operationModel.setName(operation.getName()); operationModel.setFaultTypes(getFaultTypes()); operationModel.setNonBlocking(oneway); - operationModel.setInputType(getInputType()); + DataType<List<DataType>> inputType = getInputType(); + operationModel.setInputType(inputType); + List<ParameterMode> modes = operationModel.getParameterModes(); + for (DataType dt : inputType.getLogical()) { + modes.add(ParameterMode.IN); + } operationModel.setOutputType(getOutputType()); operationModel.setWrapperStyle(isWrapperStyle()); |