Author: rott Date: Thu Jan 10 15:02:41 2008 New Revision: 610975 URL: http://svn.apache.org/viewvc?rev=610975&view=rev Log: AXIS2-3228 be less aggressive about changing to REST message processing
Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java Modified: webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java?rev=610975&r1=610974&r2=610975&view=diff ============================================================================== --- webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java (original) +++ webservices/axis2/trunk/java/modules/kernel/src/org/apache/axis2/transport/TransportUtils.java Thu Jan 10 15:02:41 2008 @@ -141,13 +141,16 @@ } // Some services send REST responces as text/xml. We should convert it to // application/xml if its a REST response, if not it will try to use the SOAPMessageBuilder. - if (HTTPConstants.MEDIA_TYPE_TEXT_XML.equals(type)) { + // isDoingREST should already be properly set by HTTPTransportUtils.initializeMessageContext + if (msgContext.isDoingREST() && HTTPConstants.MEDIA_TYPE_TEXT_XML.equals(type)) { +// if (HTTPConstants.MEDIA_TYPE_TEXT_XML.equals(type)) { if (msgContext.isServerSide()) { if (msgContext.getSoapAction() == null) { type = HTTPConstants.MEDIA_TYPE_APPLICATION_XML; } - } else if (msgContext.isDoingREST() && - !msgContext.isPropertyTrue(Constants.Configuration.SOAP_RESPONSE_MEP)) { +// } else if (msgContext.isDoingREST() && +// !msgContext.isPropertyTrue(Constants.Configuration.SOAP_RESPONSE_MEP)) { + } else if (!msgContext.isPropertyTrue(Constants.Configuration.SOAP_RESPONSE_MEP)) { type = HTTPConstants.MEDIA_TYPE_APPLICATION_XML; } } --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]