Author: richard.opalka(a)jboss.com
Date: 2011-01-31 06:35:15 -0500 (Mon, 31 Jan 2011)
New Revision: 13650
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/client/HTTPRemotingConnection.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws167/HelloJavaBean.java
Log:
[JBPAPP-4564][JBWS-3084] back porting native fix - enabling chunked encoding control for
SAAJ
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/client/HTTPRemotingConnection.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/client/HTTPRemotingConnection.java 2011-01-31
11:33:23 UTC (rev 13649)
+++
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/client/HTTPRemotingConnection.java 2011-01-31
11:35:15 UTC (rev 13650)
@@ -175,6 +175,12 @@
{
targetAddress = endpoint.toString();
}
+ final String[] transferEncodingValue = reqMessage != null ?
reqMessage.getMimeHeaders().getHeader("Transfer-Encoding") : null;
+ if (transferEncodingValue != null &&
"disabled".equals(transferEncodingValue[0]))
+ {
+ reqMessage.getMimeHeaders().removeHeader("Transfer-Encoding");
+ callProps.put(StubExt.PROPERTY_CHUNKED_ENCODING_SIZE, "0");
+ }
// setup remoting client
Map<String, Object> metadata = createRemotingMetaData(reqMessage,
callProps);
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws167/HelloJavaBean.java
===================================================================
---
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws167/HelloJavaBean.java 2011-01-31
11:33:23 UTC (rev 13649)
+++
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws167/HelloJavaBean.java 2011-01-31
11:35:15 UTC (rev 13650)
@@ -48,7 +48,7 @@
log.info("soapAction: " + Arrays.asList(soapAction));
String retStr;
- if (soapAction != null && soapAction.length == 1 &&
soapAction[0].equals("/foo/bar"))
+ if (soapAction != null && soapAction.length == 1 &&
soapAction[0].indexOf("/foo/bar") != -1)
{
retStr = "[pass]";
}
Show replies by date