Author: alessio.soldano(a)jboss.com
Date: 2008-11-24 09:55:17 -0500 (Mon, 24 Nov 2008)
New Revision: 8779
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/client/HTTPRemotingConnection.java
Log:
[JBWS-2378] Using unmarshaller for one-way invocations too and setting the
HttpClientInvoker.UNMARSHAL_NULL_STREAM property
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/client/HTTPRemotingConnection.java
===================================================================
---
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/client/HTTPRemotingConnection.java 2008-11-21
17:50:21 UTC (rev 8778)
+++
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/client/HTTPRemotingConnection.java 2008-11-24
14:55:17 UTC (rev 8779)
@@ -44,6 +44,7 @@
import org.jboss.remoting.marshal.MarshalFactory;
import org.jboss.remoting.marshal.Marshaller;
import org.jboss.remoting.marshal.UnMarshaller;
+import org.jboss.remoting.transport.http.HTTPClientInvoker;
import org.jboss.ws.core.CommonMessageContext;
import org.jboss.ws.core.MessageAbstraction;
import org.jboss.ws.core.MessageTrace;
@@ -109,9 +110,10 @@
public HTTPRemotingConnection()
{
- // HTTPClientInvoker conect sends gratuitous POST
+ // HTTPClientInvoker connect sends gratuitous POST
//
http://jira.jboss.com/jira/browse/JBWS-711
clientConfig.put(Client.ENABLE_LEASE, false);
+ clientConfig.put(HTTPClientInvoker.UNMARSHAL_NULL_STREAM, true);
}
public boolean isClosed()
@@ -222,8 +224,7 @@
client.setMarshaller(marshaller);
- if (oneway == false)
- client.setUnMarshaller(unmarshaller);
+ client.setUnMarshaller(unmarshaller);
if (log.isDebugEnabled())
log.debug("Remoting metadata: " + metadata);