summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-07-01 13:36:29 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2010-07-01 13:36:29 +0000
commiteea031c614c32c00c63fb2ddbed0175af6082179 (patch)
treeef8549edf84674260f8446980c6fdfb5f6afafcb /sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src
parentd39d03fe1645cff533aeb82b0e901c98cc8c135c (diff)
Improve error messages. This validation should happen earlier when the binding is read/resolved rather than when the providers are created. Will look to move it shortly.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@959652 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src')
-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.java8
-rw-r--r--sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ServiceBindingProvider.java8
2 files changed, 12 insertions, 4 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 b73bfdd5c1..b8ad851bad 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
@@ -127,11 +127,15 @@ public class Axis2ReferenceBindingProvider extends Axis2BaseBindingProvider impl
// check the WSDL style as we currently only support some of them
if (wsBinding.isRpcEncoded()){
- throw new ServiceRuntimeException("rpc/encoded WSDL style not supported for endpoint reference " + endpointReference);
+ throw new ServiceRuntimeException("rpc/encoded WSDL style not supported. Component " + endpointReference.getComponent().getName() +
+ " Reference " + endpointReference.getReference() +
+ " Binding " + endpointReference.getBinding().getName());
}
if (wsBinding.isDocEncoded()){
- throw new ServiceRuntimeException("doc/encoded WSDL style not supported for endpoint reference " + endpointReference);
+ throw new ServiceRuntimeException("doc/encoded WSDL style not supported. Component " + endpointReference.getComponent().getName() +
+ " Reference " + endpointReference.getReference() +
+ " Binding " + endpointReference.getBinding().getName());
}
if (wsBinding.isDocLiteralUnwrapped()){
diff --git a/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ServiceBindingProvider.java b/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ServiceBindingProvider.java
index 103180f534..e327be86be 100644
--- a/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ServiceBindingProvider.java
+++ b/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ServiceBindingProvider.java
@@ -170,11 +170,15 @@ public class Axis2ServiceBindingProvider extends Axis2BaseBindingProvider implem
// Check the WSDL style as we only support some of them
if (wsBinding.isRpcEncoded()){
- throw new ServiceRuntimeException("rpc/encoded WSDL style not supported for endpoint " + endpoint);
+ throw new ServiceRuntimeException("rpc/encoded WSDL style not supported. Component " + endpoint.getComponent().getName() +
+ " Service " + endpoint.getService() +
+ " Binding " + endpoint.getBinding().getName());
}
if (wsBinding.isDocEncoded()){
- throw new ServiceRuntimeException("doc/encoded WSDL style not supported for endpoint " + endpoint);
+ throw new ServiceRuntimeException("doc/encoded WSDL style not supported. Component " + endpoint.getComponent().getName() +
+ " Service " + endpoint.getService() +
+ " Binding " + endpoint.getBinding().getName());
}
// if (wsBinding.isDocLiteralUnwrapped()){