summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules
diff options
context:
space:
mode:
Diffstat (limited to 'sca-java-2.x/trunk/modules')
-rw-r--r--sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingProvider.java6
1 files changed, 4 insertions, 2 deletions
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 a1ecdd2a1c..5108cc80bc 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
@@ -142,7 +142,8 @@ public class Axis2ReferenceBindingProvider extends Axis2BaseBindingProvider impl
}
// Validate that the WSDL is not using SOAP v1.2 if requires="SOAP.v1_1" has been specified
- if ( isSOAP11Required ) {
+ if ( isSOAP11Required &&
+ wsBinding.getBinding() != null) {
Definition def = wsBinding.getGeneratedWSDLDocument();
Binding binding = def.getBinding(wsBinding.getBinding().getQName());
for ( Object ext : binding.getExtensibilityElements() ) {
@@ -153,7 +154,8 @@ public class Axis2ReferenceBindingProvider extends Axis2BaseBindingProvider impl
}
// Validate that the WSDL is not using SOAP v1.1 if requires="SOAP.v1_2" has been specified
- if ( isSOAP12Required ) {
+ if ( isSOAP12Required &&
+ wsBinding.getBinding() != null) {
Definition def = wsBinding.getGeneratedWSDLDocument();
Binding binding = def.getBinding(wsBinding.getBinding().getQName());
for ( Object ext : binding.getExtensibilityElements() ) {