axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dee...@apache.org
Subject svn commit: r470260 - in /webservices/axis2/branches/java/1_1/modules: integration/test/org/apache/axis2/codegen/InvalidFaultWsdlTest.java kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
Date Thu, 02 Nov 2006 07:32:27 GMT
Author: deepal
Date: Wed Nov  1 23:32:26 2006
New Revision: 470260

URL: http://svn.apache.org/viewvc?view=rev&rev=470260
Log:
improving the error logs 
 

Modified:
    webservices/axis2/branches/java/1_1/modules/integration/test/org/apache/axis2/codegen/InvalidFaultWsdlTest.java
    webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java

Modified: webservices/axis2/branches/java/1_1/modules/integration/test/org/apache/axis2/codegen/InvalidFaultWsdlTest.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/integration/test/org/apache/axis2/codegen/InvalidFaultWsdlTest.java?view=diff&rev=470260&r1=470259&r2=470260
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/integration/test/org/apache/axis2/codegen/InvalidFaultWsdlTest.java
(original)
+++ webservices/axis2/branches/java/1_1/modules/integration/test/org/apache/axis2/codegen/InvalidFaultWsdlTest.java
Wed Nov  1 23:32:26 2006
@@ -32,7 +32,7 @@
                     "to an element.");
         } catch (Exception e) {
             assertTrue(e.getCause().getMessage().startsWith(
-                    "No element reference found for the part in fault message"));
+                    "Part 'message' of fault message '{http://www.Monson-Haefel.com/jwsbook/BookQuote}InvalidIsbnFault'"));
         }
     }
 }

Modified: webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java?view=diff&rev=470260&r1=470259&r2=470260
==============================================================================
--- webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
(original)
+++ webservices/axis2/branches/java/1_1/modules/kernel/src/org/apache/axis2/description/WSDL11ToAxisServiceBuilder.java
Wed Nov  1 23:32:26 2006
@@ -327,7 +327,7 @@
         if (serviceName != null) {
             service = (Service) services.get(serviceName);
             if (service == null) {
-                throw new AxisFault("Service " + serviceName +  " was not found in the WSDL");
+                throw new AxisFault("Service " + serviceName + " was not found in the WSDL");
             }
         } else {
             if (services.size() > 0) {
@@ -837,9 +837,9 @@
         }
         QName name = wsdl4jMessagePart.getElementName();
         if (name == null) {
-            String message = "No element reference found for the part in fault message "
-                    + wsdl4jMessage.getQName().getLocalPart() +
-                    ". Fault message part should always be refer to an element.";
+            String message = "Part '" + wsdl4jMessagePart.getName() +
+                    "' of fault message '" + wsdl4jMessage.getQName()
+                    + "' must be defined with 'element=QName' and not 'type=QName'";
             log.error(message);
             throw new AxisFault(message);
 



---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org


Mime
View raw message