You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by sc...@apache.org on 2007/01/19 01:13:22 UTC

svn commit: r497649 - in /webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom: attachments/Attachments.java om/impl/MTOMConstants.java

Author: scheu
Date: Thu Jan 18 16:13:21 2007
New Revision: 497649

URL: http://svn.apache.org/viewvc?view=rev&rev=497649
Log:
WSCOMMONS-154
Contributor:Gordon Kuo/Rich Scheuerle
Accept SWAREF usage with SOAP 1.2 content-type

Modified:
    webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java
    webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MTOMConstants.java

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java?view=diff&rev=497649&r1=497648&r2=497649
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/attachments/Attachments.java Thu Jan 18 16:13:21 2007
@@ -212,9 +212,11 @@
                 this.applicationType = MTOMConstants.MTOM_TYPE;
             } else if ((MTOMConstants.SWA_TYPE).equalsIgnoreCase(applicationType)) {
                 this.applicationType = MTOMConstants.SWA_TYPE;
+            } else if ((MTOMConstants.SWA_TYPE_12).equalsIgnoreCase(applicationType)) {
+                this.applicationType = MTOMConstants.SWA_TYPE_12;
             } else {
                 throw new OMException(
-                        "Invalid Application type. Support available for MTOM & SwA/SOAP 1.l only.");
+                        "Invalid Application type. Support available for MTOM & SwA only.");
             }
         }
         return this.applicationType;

Modified: webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MTOMConstants.java
URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MTOMConstants.java?view=diff&rev=497649&r1=497648&r2=497649
==============================================================================
--- webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MTOMConstants.java (original)
+++ webservices/commons/trunk/modules/axiom/modules/axiom-api/src/main/java/org/apache/axiom/om/impl/MTOMConstants.java Thu Jan 18 16:13:21 2007
@@ -28,6 +28,8 @@
      * If the message is Soap with Attachments <code>SWA_TYPE</code>
      */
     String SWA_TYPE = "text/xml";
+    String SWA_TYPE_12 = "application/soap+xml";
+    
     /**
      * <code>rootPart</code> is used as the key for the root BodyPart in the
      * Parts HashMap



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