summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/binding-ws-wsdlgen
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-10-19 14:03:07 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-10-19 14:03:07 +0000
commitc79fbcb63cc5b097533f0d36b43e4c32782c71b1 (patch)
tree29f852f32a3660588ce49fcc642317ea8d7ba02a /sca-java-2.x/trunk/modules/binding-ws-wsdlgen
parent7fc8467572a9691e152123f44c38076f08ec0bd4 (diff)
Resolve operation policy and take account of it in base policy processor.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1186226 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-ws-wsdlgen')
-rw-r--r--sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/BindingWSDLGenerator.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/BindingWSDLGenerator.java b/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/BindingWSDLGenerator.java
index 516a62a556..b66ac4e370 100644
--- a/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/BindingWSDLGenerator.java
+++ b/sca-java-2.x/trunk/modules/binding-ws-wsdlgen/src/main/java/org/apache/tuscany/sca/binding/ws/wsdlgen/BindingWSDLGenerator.java
@@ -41,6 +41,7 @@ import org.apache.tuscany.sca.core.FactoryExtensionPoint;
import org.apache.tuscany.sca.databinding.DataBindingExtensionPoint;
import org.apache.tuscany.sca.interfacedef.InterfaceContract;
import org.apache.tuscany.sca.interfacedef.InvalidInterfaceException;
+import org.apache.tuscany.sca.interfacedef.Operation;
import org.apache.tuscany.sca.interfacedef.java.JavaInterface;
import org.apache.tuscany.sca.interfacedef.java.JavaInterfaceContract;
import org.apache.tuscany.sca.interfacedef.wsdl.WSDLDefinition;
@@ -352,6 +353,18 @@ public class BindingWSDLGenerator {
} catch (InvalidInterfaceException e) {
throw new WSDLGenerationException(e);
}
+
+ // copy operation intents and policy sets from Java to WSDL interface
+ // in case we need to refer to them in later processing
+ for(Operation javaOperation : javaInterface.getOperations()){
+ for(Operation wsdlOperation : wsdlInterface.getOperations()){
+ if (wsdlOperation.getName().equals(javaOperation.getName())){
+ wsdlOperation.getRequiredIntents().addAll(javaOperation.getRequiredIntents());
+ wsdlOperation.getPolicySets().addAll(javaOperation.getPolicySets());
+ break;
+ }
+ }
+ }
return wsdlInterface;
}