From c03e0af6609e33f04e995d4b0df63789072d62ef Mon Sep 17 00:00:00 2001 From: slaws Date: Fri, 25 Feb 2011 10:19:00 +0000 Subject: Move the binding/policy configuration step to after the Axis config context has been created. git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1074465 13f79535-47bb-0310-9956-ffa450edef68 --- .../ws/axis2/provider/Axis2ReferenceBindingProvider.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache') diff --git a/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingProvider.java b/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingProvider.java index 20f5e004cc..fb9bcb12f8 100644 --- a/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingProvider.java +++ b/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingProvider.java @@ -120,11 +120,7 @@ public class Axis2ReferenceBindingProvider extends Axis2BaseBindingProvider impl PolicyHelper.isIntentRequired(wsBinding, Constants.CONFIDENTIALITY_INTENT) || PolicyHelper.isIntentRequired(wsBinding, Constants.INTEGRITY_INTENT); - // Apply the configuration from any other policies - - for (PolicyProvider pp : this.endpointReference.getPolicyProviders()) { - pp.configureBinding(this); - } + // Validate the configuration for provided policies // check the WSDL style as we currently only support some of them if (wsBinding.isRpcEncoded()){ @@ -169,6 +165,12 @@ public class Axis2ReferenceBindingProvider extends Axis2BaseBindingProvider impl public void start() { configContext = Axis2EngineIntegration.getAxisConfigurationContext(extensionPoints.getServiceDiscovery()); + // Apply the configuration from any other policies + + for (PolicyProvider pp : this.endpointReference.getPolicyProviders()) { + pp.configureBinding(this); + } + try { Definition definition = wsBinding.getGeneratedWSDLDocument(); QName serviceQName = wsBinding.getService().getQName(); -- cgit v1.2.3