You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2008/12/15 16:21:22 UTC
svn commit: r726711 -
/servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapProviderMarshaler.java
Author: gnodet
Date: Mon Dec 15 07:21:22 2008
New Revision: 726711
URL: http://svn.apache.org/viewvc?rev=726711&view=rev
Log:
SM-1733: servicemix-http provider endpoint may convey incorrect http headers, leading to problems
Modified:
servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapProviderMarshaler.java
Modified: servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapProviderMarshaler.java
URL: http://svn.apache.org/viewvc/servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapProviderMarshaler.java?rev=726711&r1=726710&r2=726711&view=diff
==============================================================================
--- servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapProviderMarshaler.java (original)
+++ servicemix/components/bindings/servicemix-http/trunk/src/main/java/org/apache/servicemix/http/endpoints/HttpSoapProviderMarshaler.java Mon Dec 15 07:21:22 2008
@@ -108,9 +108,11 @@
httpExchange.setMethod(HttpMethods.POST);
httpExchange.setURL(baseUrl);
httpExchange.setRequestContent(new ByteArrayBuffer(baos.toByteArray()));
- for (Map.Entry<String,String> entry : msg.getTransportHeaders().entrySet()) {
- httpExchange.addRequestHeader(entry.getKey(), entry.getValue());
- }
+ // Do not include additional headers for now as it causes problems
+ // when the exchange comes from an HTTP request
+// for (Map.Entry<String,String> entry : msg.getTransportHeaders().entrySet()) {
+// httpExchange.addRequestHeader(entry.getKey(), entry.getValue());
+// }
/*
httpExchange.setRequestEntity(new Entity() {
public void write(OutputStream os, Writer w) throws IOException {