You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by ke...@apache.org on 2007/11/28 10:03:15 UTC

svn commit: r598918 - /webservices/axis2/branches/java/1_3_post_mods/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java

Author: keithc
Date: Wed Nov 28 01:03:12 2007
New Revision: 598918

URL: http://svn.apache.org/viewvc?rev=598918&view=rev
Log:
Skipping text/xml during http content negotiation


Modified:
    webservices/axis2/branches/java/1_3_post_mods/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java

Modified: webservices/axis2/branches/java/1_3_post_mods/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_3_post_mods/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java?rev=598918&r1=598917&r2=598918&view=diff
==============================================================================
--- webservices/axis2/branches/java/1_3_post_mods/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java (original)
+++ webservices/axis2/branches/java/1_3_post_mods/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java Wed Nov 28 01:03:12 2007
@@ -662,7 +662,10 @@
                     }
                     String[] strings = acceptHeader.split(",");
                     for (int i = 0; i < strings.length; i++) {
-                        if (configuration.getMessageFormatter(strings[i].trim()) != null) {
+                        String accept = strings[i].trim();
+                        // We dont want dynamic content negotoatin to work on text.xml as its
+                        // ambiguos as to whether the user requests SOAP 1.1 or POX response
+                        if (!HTTPConstants.MEDIA_TYPE_TEXT_XML.equals(accept) && configuration.getMessageFormatter(accept) != null) {
                             type = strings[i];
                             break;
                         }



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