You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by jb...@apache.org on 2009/11/13 12:55:10 UTC
svn commit: r835821 -
/servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapConsumerMarshaler.java
Author: jbonofre
Date: Fri Nov 13 11:55:10 2009
New Revision: 835821
URL: http://svn.apache.org/viewvc?rev=835821&view=rev
Log:
Add a reminder concerning the content type to use depending of the SOAP version.
Modified:
servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapConsumerMarshaler.java
Modified: servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapConsumerMarshaler.java
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapConsumerMarshaler.java?rev=835821&r1=835820&r2=835821&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapConsumerMarshaler.java (original)
+++ servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapConsumerMarshaler.java Fri Nov 13 11:55:10 2009
@@ -115,6 +115,7 @@
public void sendOut(MessageExchange exchange, NormalizedMessage outMsg, HttpServletRequest request, HttpServletResponse response) throws Exception {
addResponseHeaders(exchange, request, response);
// the content type is specific to this marshaler
+ // TODO the following content type is only valid for SOAP 1.2, SOAP 1.1 should use text/xml
response.setContentType("application/soap+xml");
Message in = (Message) request.getAttribute(Message.class.getName());
Message msg = binding.createMessage(in);
@@ -154,6 +155,7 @@
public void sendFault(MessageExchange exchange, Fault fault, HttpServletRequest request, HttpServletResponse response) throws Exception {
addResponseHeaders(exchange, request, response);
// the content type is specific to this marshaler
+ // TODO the following content type is only valid for SOAP 1.2, SOAP 1.1 should use text/xml
response.setContentType("application/soap+xml");
response.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR);
Message in = (Message) request.getAttribute(Message.class.getName());