axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d..@apache.org
Subject svn commit: r332063 - /webservices/axis/trunk/java/src/org/apache/axis/handlers/soap/MustUnderstandChecker.java
Date Wed, 09 Nov 2005 15:08:51 GMT
Author: dug
Date: Wed Nov  9 07:08:47 2005
New Revision: 332063

URL: http://svn.apache.org/viewcvs?rev=332063&view=rev
Log:
Show MU headers for non-soap 1.2 clients too

Modified:
    webservices/axis/trunk/java/src/org/apache/axis/handlers/soap/MustUnderstandChecker.java

Modified: webservices/axis/trunk/java/src/org/apache/axis/handlers/soap/MustUnderstandChecker.java
URL: http://svn.apache.org/viewcvs/webservices/axis/trunk/java/src/org/apache/axis/handlers/soap/MustUnderstandChecker.java?rev=332063&r1=332062&r2=332063&view=diff
==============================================================================
--- webservices/axis/trunk/java/src/org/apache/axis/handlers/soap/MustUnderstandChecker.java
(original)
+++ webservices/axis/trunk/java/src/org/apache/axis/handlers/soap/MustUnderstandChecker.java
Wed Nov  9 07:08:47 2005
@@ -100,24 +100,24 @@
                             null);
             StringBuffer whatWasMissUnderstood = new StringBuffer(256);
 
-            // !!! If SOAP 1.2, insert misunderstood fault headers here
-            if (soapConstants == SOAPConstants.SOAP12_CONSTANTS) {
-                enumeration = misunderstoodHeaders.elements();
-                while (enumeration.hasMoreElements()) {
-                    SOAPHeaderElement badHeader = (SOAPHeaderElement) enumeration.
-                            nextElement();
-                    QName badQName = new QName(badHeader.getNamespaceURI(),
-                            badHeader.getName());
-                    if (whatWasMissUnderstood.length() != 0)
-                        whatWasMissUnderstood.append(", ");
-                    whatWasMissUnderstood.append(badQName.toString());
-                    SOAPHeaderElement newHeader = new
-                            SOAPHeaderElement(Constants.URI_SOAP12_ENV,
-                                    Constants.ELEM_NOTUNDERSTOOD);
-                    newHeader.addAttribute(null,
-                            Constants.ATTR_QNAME,
-                            badQName);
-                    fault.addHeader(newHeader);
+            enumeration = misunderstoodHeaders.elements();
+            while (enumeration.hasMoreElements()) {
+                SOAPHeaderElement badHeader = (SOAPHeaderElement) enumeration.
+                        nextElement();
+                QName badQName = new QName(badHeader.getNamespaceURI(),
+                        badHeader.getName());
+                if (whatWasMissUnderstood.length() != 0)
+                    whatWasMissUnderstood.append(", ");
+                whatWasMissUnderstood.append(badQName.toString());
+                // !!! If SOAP 1.2, insert misunderstood fault headers here
+                if ( soapConstants == SOAPConstants.SOAP12_CONSTANTS ) {
+                  SOAPHeaderElement newHeader = new
+                          SOAPHeaderElement(Constants.URI_SOAP12_ENV,
+                                  Constants.ELEM_NOTUNDERSTOOD);
+                  newHeader.addAttribute(null,
+                          Constants.ATTR_QNAME,
+                          badQName);
+                  fault.addHeader(newHeader);
                 }
             }
             fault.setFaultString(Messages.getMessage("noUnderstand00",



Mime
View raw message