You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by sl...@apache.org on 2010/07/01 15:36:30 UTC

svn commit: r959652 - in /tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider: Axis2ReferenceBindingProvider.java Axis2ServiceBindingProvider.java

Author: slaws
Date: Thu Jul  1 13:36:29 2010
New Revision: 959652

URL: http://svn.apache.org/viewvc?rev=959652&view=rev
Log:
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. 

Modified:
    tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingProvider.java
    tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ServiceBindingProvider.java

Modified: tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingProvider.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingProvider.java?rev=959652&r1=959651&r2=959652&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingProvider.java (original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ReferenceBindingProvider.java Thu Jul  1 13:36:29 2010
@@ -127,11 +127,15 @@ public class Axis2ReferenceBindingProvid
         
         // 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()){

Modified: tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ServiceBindingProvider.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ServiceBindingProvider.java?rev=959652&r1=959651&r2=959652&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ServiceBindingProvider.java (original)
+++ tuscany/sca-java-2.x/trunk/modules/binding-ws-runtime-axis2/src/main/java/org/apache/tuscany/sca/binding/ws/axis2/provider/Axis2ServiceBindingProvider.java Thu Jul  1 13:36:29 2010
@@ -170,11 +170,15 @@ public class Axis2ServiceBindingProvider
         // 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()){