geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r178352 - /geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightOperationDescBuilder.java
Date Wed, 25 May 2005 03:22:23 GMT
Author: djencks
Date: Tue May 24 20:22:22 2005
New Revision: 178352

URL: http://svn.apache.org/viewcvs?rev=178352&view=rev
Log:
Fix one case in which the exception QName namespace can be determined

Modified:
    geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightOperationDescBuilder.java

Modified: geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightOperationDescBuilder.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightOperationDescBuilder.java?rev=178352&r1=178351&r2=178352&view=diff
==============================================================================
--- geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightOperationDescBuilder.java
(original)
+++ geronimo/trunk/modules/axis-builder/src/java/org/apache/geronimo/axis/builder/HeavyweightOperationDescBuilder.java
Tue May 24 20:22:22 2005
@@ -362,7 +362,9 @@
             throw new DeploymentException("No exception mapping for fault " + faultName +
" and fault message " + messageQName + " for operation " + operationName);
         }
         String className = exceptionMapping.getExceptionType().getStringValue().trim();
+        //TODO investigate whether there are other cases in which the namespace of faultQName
can be determined.
         //this is weird, but I can't figure out what it should be.
+        //if part has an element rather than a type, it should be part.getElementName() (see
below)
         QName faultQName = new QName("", faultName);
         Part part;
         if (exceptionMapping.isSetWsdlMessagePartName()) {
@@ -379,6 +381,7 @@
                 throw new DeploymentException("Neither type nor element name supplied for
part: " + part);
             }
         } else {
+            faultQName = part.getElementName();
             faultTypeQName = (QName) schemaInfoBuilder.getElementToTypeMap().get(part.getElementName());
             if (faultTypeQName == null) {
                 throw new DeploymentException("Can not find type for: element: " + part.getElementName()
+ ", known elements: " + schemaInfoBuilder.getElementToTypeMap());



Mime
View raw message