summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-10-19 08:18:55 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-10-19 08:18:55 +0000
commit3312769c458a55a8420566eff6936957a7c1e645 (patch)
treea07fd1c836c75a72ae3ab55ab005bb5c885bde5b /sca-java-2.x/trunk/modules/binding-ws-runtime-axis2
parent374ce449d837da70f591bb65a8f9de29fb0b1f7c (diff)
check that the binding is set in the wsdl
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1186022 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-ws-runtime-axis2')
-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() ) {