axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kei...@apache.org
Subject svn commit: r598916 - /webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java
Date Wed, 28 Nov 2007 08:53:21 GMT
Author: keithc
Date: Wed Nov 28 00:53:20 2007
New Revision: 598916

URL: http://svn.apache.org/viewvc?rev=598916&view=rev
Log:
Ficing httpcontent negotiation to ignote text/xml


Modified:
    webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java

Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java?rev=598916&r1=598915&r2=598916&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java
(original)
+++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/builder/BuilderUtil.java
Wed Nov 28 00:53:20 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


Mime
View raw message